-
Notifications
You must be signed in to change notification settings - Fork 1
/
ncurses-wide.carp
35 lines (31 loc) · 960 Bytes
/
ncurses-wide.carp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
(relative-include "lib/ncurses_wide_helper.h")
(load "ncurses.carp")
(load "lib/wide/locale/locale.carp")
(register-type Wchar)
(register-type WideChar)
(register-type WideString)
(load "lib/wide/addwch.carp")
(load "lib/wide/addwchstr.carp")
(load "lib/wide/addwstr.carp")
(load "lib/wide/borderset.carp")
(load "lib/wide/slk.carp")
(load "lib/wide/getwch.carp")
(load "lib/wide/getwstr.carp")
(load "lib/wide/getcchar.carp")
(load "lib/wide/inwch.carp")
(load "lib/wide/inwchstr.carp")
(load "lib/wide/inwstr.carp")
(load "lib/wide/inswstr.carp")
(load "lib/wide/inswch.carp")
(load "lib/wide/pad.carp")
(defmodule NCurses
(defmodule Wide
;; TODO: It'd be great to have a more robust solution for this supporting
;; widechar literals.
(register widechar (Fn [Attribute String] WideChar))
(register widestring (Fn [(Ptr CChar)] WideString))
(defn initscr []
(do (enable-unicode @"en" @"US")
(NCurses.initscr)))
)
)