You really do *not* want to hardcode terminal escapes since they are terminal dependent. Better to query capabilities.
Sad to hear that FreeBSD stayed with the outdated termcap format. Supposedly if you add ncurses devel support to FreeBSD you'll get terminfo. Still it's sort of sad really.
I believe OpenBSD and NetBSD moved forward. It's strange to me that FreeBSD stayed behind on this.
We have some unseen chars in unix, like '^T's, can be seen with 'cat -v' command.
Is there any way, with which, we can replace these ^T s with a space? (1 Reply)
I was using the following bash command inside the emacs compile command to search C++ source code:
grep -inr --include='*.h' --include='*.cpp' '"' * | sed "/include/d" | sed "/_T/d" | sed '/^ *\/\//d' | sed '/extern/d'
Emacs will then position me in the correct file and at the correct line... (0 Replies)
I know this should be simple, but I've been manning sed awk grep and find and am stupidly stumped :(
I'm trying to use sed (or awk, find, etc) to find 4 characters on the second line of a file.txt 44-47 characters in. I can find lots of sed things for lines, but not characters. (4 Replies)
Hi ,
Could you please guide me how to remove formatting (bold text) in a unix file?
vi editor showing like this...
^
Cat command showing like this...
tl21ss01
tl21ss02
tl21ss03 (6 Replies)
Hi Team,
I have a file a1.txt with data as follows.
dfjakjf...asdfkasj</EnableQuotedIDs><SQL><SelectStatement modified='1' type='string'><!
The delimiter string: <SelectStatement modified='1' type='string'><!
dlm="<SelectStatement modified='1' type='string'><!
The above command is... (7 Replies)
Discussion started by: kmanivan82
7 Replies
LEARN ABOUT DEBIAN
cmatrix
CMatrix(1) General Commands Manual CMatrix(1)NAME
CMatrix - simulates the display from "The Matrix"
SYNOPSIS
cmatrix [-abBflohnsVx] [-u update] [-C color]
DESCRIPTION
Shows a scrolling 'Matrix' like screen in Linux
OPTIONS
-a Asynchronous scroll
-b Bold characters on
-B All bold characters (overrides -b)
-f Force the linux $TERM type to be on
-l Linux mode (sets "matrix.fnt" font in console)
-o Use old-style scrolling
-h, -? Print usage and exit
-n No bold characters (overrides -b and -B)
-s "Screensaver" mode, exits on first keystroke
-x X window mode, use if your xterm is using mtx.pcf
-V Print version information and exit
-u delay
Screen update delay 0 - 9, default 4
-C color
Use this color for matrix (default green). Valid colors are green, red, blue, white, yellow, cyan, magenta and black.
KEYSTROKES
The following keystrokes are available during execution (unavailable in -s mode)
a Toggle asynchronous scroll
b Random bold characters
B All bold characters
n Turn off bold characters
0-9 Adjust update speed
! @ # $ % ^ & )
Change the color of the matrix to the corresponding color: ! - red, @ - green, # - yellow, $ - blue, % - magenta, ^ - cyan, & -
white, ) - black.
q Quit the program
BUGS
This program is very CPU intensive. Don't be surprised if it eats up over 40% of your CPU at times.
HOMEPAGE
The CMatrix homepage is currently at http://www.asty.org/cmatrix.
AUTHORS
Chris Allegretta (chrisa@asty.org), with a lot of help from many other people. See README file for details.
Mon May 3 1999 CMatrix(1)