On Sat, Apr 25, 2026, at 11:58, Bernd Paysan wrote:
> Try this code and press shift+f3:
>
> [begin] key h. key? 0= [until]
>
> konsole: $1B $4F $32 $52
> Linux console (text-based): $1B $5B $32 $38 $7E
> xterm/uxterm: $1B $5B $31 $3B $32 $52 (fails to be recognized by Gforth-
> current, recognized by 0.7.3)
> gnome-terminal: $1B $5B $31 $3B $32 $52 (same as xterm)
>
> So indeed, we need to add the patterns that used to work on 0.7.3.

I did some testing on the latest gnome-terminal on OpenBSD (-current/snapshots, 
post-7.9 release, gforth 0.7.9 installed manually). Shift-F1 through F4 all 
fail to match the constants. Shift-F1 and Shift-F4 return at least sane values; 
Shift-F2 and Shift-F3 return things not even recognized by ekey (which returns 
an escape character only, spewing the rest out onto the console or into future 
calls of ekey). Shift-F5 through Shift-F12 all appear to work as intended 
(though since F11 is a shortcut for full-screen mode I don't use Shift-F11).

For now I've hacked my code to use Shift-F4 where I used to use Shift-F3.

-- 
  Shawn K. Quinn
  [email protected]


Reply via email to