#23 screen & keyboard interaction

open
nobody
UI (5)
5
2010-10-05
2005-10-27
Sam Steingold
No

add setfable accessors:
(SCREEN:TEXT-COLOR window-screen)
(SCREEN:BACKGROUND-COLOR window-screen)

Discussion

<< < 1 2 (Page 2 of 2)
  • The problem with (read-char ext:*keyboard-input*) and unicode characters (two codes are returned for the single key pressed) is system-dependent, there is no such problem on Windows (Clisp ver 2.49 release). So it's a bug. No system info was supplied by Edgar, I just hope it's not C-64.

    On Win:
    (#S(SYSTEM::INPUT-CHARACTER :CHAR #\CYRILLIC_SMALL_LETTER_YA :BITS 0 :FONT 0 :KEY NIL)
    #\CYRILLIC_SMALL_LETTER_YA)
    (#S(SYSTEM::INPUT-CHARACTER :CHAR #\CYRILLIC_SMALL_LETTER_ZE :BITS 0 :FONT 0 :KEY NIL)
    #\CYRILLIC_SMALL_LETTER_ZE)
    (#S(SYSTEM::INPUT-CHARACTER :CHAR #\CYRILLIC_SMALL_LETTER_SHCHA :BITS 0 :FONT 0 :KEY NIL)
    #\CYRILLIC_SMALL_LETTER_SHCHA)
    (#S(SYSTEM::INPUT-CHARACTER :CHAR #\CYRILLIC_SMALL_LETTER_SHA :BITS 0 :FONT 0 :KEY NIL)
    #\CYRILLIC_SMALL_LETTER_SHA)

     
  • Forgot to mention that Control-F1 and Control-arrows and Alt-arrows are ok too on Windows. Control/Alt are encoded in INPUT-CHARACTER-BITS.

     
  • edgar-rft
    edgar-rft
    2010-10-12

    > No system info was supplied by Edgar, I just hope it's not C-64.

    Sorry, the *keyboard-input* problems appeared on Debian Lenny (Linux),
    Ubuntu 10.4 (Linux) and OpenSuse Linux (exact version not known yet).

    The only Windows system I have available at home is a Win2000 machine,
    but I do not think that in 2010 anybody is interested in Win2k bugs.

    But I know a few people who have still-working C-64 machines... :)

    There are two terminal emulators in "src/stream.d", one for Windows and
    one for Unix/Linux, so it looks as if the *keyboard-input* problems are
    Unix/Linux specific.

    - edgar

     
  • Sam Steingold
    Sam Steingold
    2010-10-12

    ok, so I am awaiting stream.d patches from edgar :-)
    meanwhile, you can play with the old clisp screen editor from the 1990-ies in modules/ediitor
    unless someone wants to work on it, it will be removed before the next release

     
<< < 1 2 (Page 2 of 2)