From 20539a9a2a16062ba9c83efbf933d818c3e157ae Mon Sep 17 00:00:00 2001 From: Devin Teske Date: Wed, 1 Apr 2015 01:17:36 +0000 Subject: [PATCH] Add remainder of supported ANSI escape sequences. MFC after: 3 days X-MFC-to: stable/10 --- sys/boot/forth/screen.4th | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sys/boot/forth/screen.4th b/sys/boot/forth/screen.4th index c3d454947ec..1e0b7bf93cf 100644 --- a/sys/boot/forth/screen.4th +++ b/sys/boot/forth/screen.4th @@ -50,3 +50,15 @@ marker task-screen.4th \ Mode end (clear attributes) : me ( -- ) escc [char] m emit ; + +\ Enable bold mode ( Esc-[1m ) +: b ( -- ) escc 1 .# [char] m emit ; + +\ Disable bold mode ( Esc-[22m ) +: -b ( -- ) escc 22 .# [char] m emit ; + +\ Enable inverse foreground/background mode ( Esc-[7m ) +: inv ( -- ) escc 7 .# [char] m emit ; + +\ Disable inverse foreground/background mode ( Esc-[27m ) +: -inv ( -- ) escc 27 .# [char] m emit ;