svn commit: r280934 - head/sys/boot/forth

Devin Teske dteske at FreeBSD.org
Wed Apr 1 01:17:37 UTC 2015


Author: dteske
Date: Wed Apr  1 01:17:36 2015
New Revision: 280934
URL: https://svnweb.freebsd.org/changeset/base/280934

Log:
  Add remainder of supported ANSI escape sequences.
  
  MFC after:	3 days
  X-MFC-to:	stable/10

Modified:
  head/sys/boot/forth/screen.4th

Modified: head/sys/boot/forth/screen.4th
==============================================================================
--- head/sys/boot/forth/screen.4th	Wed Apr  1 01:14:19 2015	(r280933)
+++ head/sys/boot/forth/screen.4th	Wed Apr  1 01:17:36 2015	(r280934)
@@ -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 ;


More information about the svn-src-all mailing list