From owner-freebsd-doc Sat Jun 9 17:10:18 2001 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 54DE537B408 for ; Sat, 9 Jun 2001 17:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5A0A1366351; Sat, 9 Jun 2001 17:10:01 -0700 (PDT) (envelope-from gnats) Received: from zoot.quizbot.org (blndi4-145-253-140-012.arcor-ip.net [145.253.140.12]) by hub.freebsd.org (Postfix) with ESMTP id 06A1237B405 for ; Sat, 9 Jun 2001 17:00:16 -0700 (PDT) (envelope-from robert@zoot.quizbot.org) Received: (from robert@localhost) by zoot.quizbot.org (8.11.4/8.11.4) id f5A00DG02220; Sun, 10 Jun 2001 02:00:13 +0200 (CEST) (envelope-from robert) Message-Id: <200106100000.f5A00DG02220@zoot.quizbot.org> Date: Sun, 10 Jun 2001 02:00:13 +0200 (CEST) From: Robert Drehmel To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: docs/28000: adding and changing information in vidcontrol(1) Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 28000 >Category: docs >Synopsis: adding and changing information in vidcontrol(1) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jun 09 17:10:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Robert Drehmel >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD zoot.quizbot.org 5.0-CURRENT FreeBSD 5.0-CURRENT #3: Sat Jun 9 01:27:13 CEST 2001 root@zoot:/data/sys/compile/ZOOT i386 >Description: This patch adds and corrects some information in the vidcontrol(1) manual page. >How-To-Repeat: >Fix: Index: vidcontrol.1 =================================================================== RCS file: /home/ncvs/src/usr.sbin/vidcontrol/vidcontrol.1,v retrieving revision 1.39 diff -r1.39 vidcontrol.1 291c291 < PC video memory is typically arranged in two byte tuples, --- > VGA video memory is typically arranged in two byte tuples, 293,300c293,311 < In each tuple, the first byte < will be the character code, and the second byte is the < character's color attribute. < .Pp < The color attribute byte is further broken down in to the < low nibble, which specifies which of 16 different foreground < colors is active, and the high nibble, which specifies which < of 16 different background colors is active. --- > In each tuple, the first byte will be the character code, > and the second byte is the character's color attribute. > .Pp > The syscons driver converts the ^[[Nm terminal escapes > into the corresponding attribute bytes. > .Pp > The VGA color attribute byte looks like this: > .Pp > .Bl -column "X:X" "<00000000>" "width" "bright foreground color" > .Sy bits# Ta Ta Sy width Ta Sy meaning > .Li 7 Ta Ta 1 Ta character blinking > .Li 6:4 Ta <0XXX0000> Ta 3 Ta background color > .Li 3 Ta <0000X000> Ta 1 Ta bright foreground color > .Li 2:0 Ta <00000XXX> Ta 3 Ta foreground color > .El > .Pp > Here is a list of the three bit wide base colors with > their corresponding ANSI terminal escape codes > parenthesized (add 10 to get the background code): 304c315 < Black --- > Black (30) 306c317 < Blue --- > Blue (34) 308c319 < Green --- > Green (32) 310c321 < Cyan --- > Cyan (36) 312c323 < Red --- > Red (31) 314c325 < Magenta --- > Magenta (35) 316c327 < Brown --- > Brown (33) 318,321c329,339 < White < .It 8 < Grey < .It 9 --- > Light Grey (37) > .El > .Pp > Base colors with bit 3 (the bright foreground flag) > set. The terminal escape for successive bright text > is ^[[1m. > .Pp > .Bl -hang -offset indent -compact > .It 0 > Dark Grey > .It 1 323c341 < .It 10 --- > .It 2 325c343 < .It 11 --- > .It 3 327c345 < .It 12 --- > .It 4 329c347 < .It 13 --- > .It 5 331c349 < .It 14 --- > .It 6 333c351 < .It 15 --- > .It 7 336,338c354 < .Pp < It can be seen that the last 8 colors are brighter < versions of the first 8. --- > .lt 1 344,346c360,362 < specify an uppercase A (character code 65), in < yellow (low nibble 15) on a light blue background < (high nibble 9). --- > specify an uppercase A (character code 65), blinking > (bit 7 set) in yellow (bits 3:0) on a blue background > (bits 6:4). 490a507 > .An Robert Drehmel Aq robert@zoot.quizbot.org >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message