Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fancy characters only work with -string- functions #32

Open
sjl opened this issue Aug 5, 2016 · 3 comments
Open

Fancy characters only work with -string- functions #32

sjl opened this issue Aug 5, 2016 · 3 comments

Comments

@sjl
Copy link
Contributor

sjl commented Aug 5, 2016

This works as expected:

(write-string-at-point charms:*standard-window* "ó" 0 0)

But using the -char version doesn't seem to write anything at all:

(write-char-at-point charms:*standard-window* #\ó 0 0)

I can just use the string variant, but it would be nice if the char one worked too.

@stylewarning
Copy link
Collaborator

I suspect this has to do with improper/confused types. There's chtype and wchar and etc. Will look into.

@stylewarning
Copy link
Collaborator

I'm still running into this issue but I haven't figured it out.

@fouric
Copy link

fouric commented Jun 13, 2022

This now appears to happen for the -string- variants too:

(defun minimal-test ()
  (charms:with-curses ()
    (charms/ll:timeout 10000)
    (charms:disable-echoing)
    (charms/ll:curs-set 0)
    (charms:write-char-at-point t #\return_symbol 1 1)
    (charms:write-string-at-point t "⏎test" 1 2)
    (charms:insert-char-at-point t #\return_symbol 1 3)
    (charms:insert-char-at-point t #\e 1 3)
    (charms:get-char t :ignore-error t)))

Running the above code on SBCL 2.1.11.debian on AMD64 Linux with ncurses 6.3 yields ~O~Ntest instead of ⏎test on line 2 (from write-string-at-point) and nothing on lines 1 or 3 (from {write,insert}-char-at-point). Prior to an upgrade from SBCL 1.8-ish, UTF-8/Unicode characters worked alright.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants