Skip to content

Commit 6f0398d

Browse files
committed
add F11 to Linux
1 parent 4b74326 commit 6f0398d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/med/xterm.d

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,14 +412,18 @@ void build_long_keys()
412412
lkroot = cast(LONGKEY *)malloc( LONGKEY.sizeof );
413413
lkroot.key = 0; lkroot.ptr = null;
414414

415+
// Bash:
416+
// for x in {1..12}; do echo -n "F$x "; tput kf$x | cat -A; echo; done
415417
build_one_long("\033[A", UPKEY);
416418
build_one_long("\033[B", DNKEY);
417419
build_one_long("\033[C", RTKEY);
418420
build_one_long("\033[D", LTKEY);
421+
// $ O P
419422
build_one_long( "\033\x4F\x50", F1KEY );
420423
build_one_long( "\033\x4F\x51", F2KEY );
421424
build_one_long( "\033\x4F\x52", F3KEY );
422425
build_one_long( "\033\x4F\x53", F4KEY );
426+
// $ [ 1 1 ~
423427
build_one_long( "\033\x5B\x31\x31\x7E", F1KEY );
424428
build_one_long( "\033\x5B\x31\x32\x7E", F2KEY );
425429
build_one_long( "\033\x5B\x31\x33\x7E", F3KEY );
@@ -430,6 +434,7 @@ void build_long_keys()
430434
build_one_long( "\033\x5B\x31\x39\x7E", F8KEY );
431435
build_one_long( "\033\x5B\x32\x30\x7E", F9KEY );
432436
build_one_long( "\033\x5B\x32\x31\x7E", F10KEY );
437+
build_one_long( "\033\x5B\x32\x33\x7E", F11KEY );
433438
build_one_long( "\033\x5B\x32\x34\x7E", F12KEY );
434439

435440

0 commit comments

Comments
 (0)