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 POSIX
toe
toe(1) General Commands Manual toe(1)NAME
toe - table of (terminfo) entries
SYNOPSIS
toe [-v[n]] [-ahsuUV] file...
DESCRIPTION
With no options, toe lists all available terminal types by primary name with descriptions. File arguments specify the directories to be
scanned; if no such arguments are given, your default terminfo directory is scanned. If you also specify the -h option, a directory header
will be issued as each directory is entered.
There are other options intended for use by terminfo file maintainers:
-a report on all of the terminal databases which ncurses would search, rather than only the first one that it finds.
If the -s is also given, toe adds a column to the report, showing (like conflict(1)) which entries which belong to a given terminal
database. An "*" marks entries which differ, and "+" marks equivalent entries.
Without the -s option, toe does not attempt to merge duplicates in its report
-s sort the output by the entry names.
-u file
says to write a report to the standard output, listing dependencies in the given terminfo/termcap source file. The report condenses
the "use" relation: each line consists of the primary name of a terminal that has use capabilities, followed by a colon, followed by
the whitespace-separated primary names of all terminals which occur in those use capabilities, followed by a newline
-U file
says to write a report to the standard output, listing reverse dependencies in the given terminfo/termcap source file. The report
reverses the "use" relation: each line consists of the primary name of a terminal that occurs in use capabilities, followed by a
colon, followed by the whitespace-separated primary names of all terminals which depend on it, followed by a newline.
-vn specifies that (verbose) output be written to standard error, showing toe's progress.
The optional parameter n is a number from 1 to 10, interpreted as for tic(1). If ncurses is built without tracing support, the
optional parameter is ignored.
-V reports the version of ncurses which was used in this program, and exits.
FILES
/etc/terminfo/?/*
Compiled terminal description database.
SEE ALSO tic(1), infocmp(1), captoinfo(1), infotocap(1), ncurses(3NCURSES), terminfo(5).
This describes ncurses version 6.1 (patch 20180127).
toe(1)