Sponsored Content
Full Discussion: Make bold chars in UNIX
Top Forums Shell Programming and Scripting Make bold chars in UNIX Post 302938596 by cjcox on Tuesday 17th of March 2015 06:56:41 PM
Old 03-17-2015
Quote:
Originally Posted by Scrutinizer
Or try:
Code:
printf '\e[1m%s\e[0m\n' "Hello there"

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.
 

10 More Discussions You Might Find Interesting

1. Programming

How can I make ls -l in HP-UNIX?

I made a liitle source about that.. BUt I got a trouble when making files'authority.. How can I display them?? p.s.) used struct stat .. (1 Reply)
Discussion started by: sangjinn
1 Replies

2. Shell Programming and Scripting

Hidden chars in Unix can be replaced?

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)
Discussion started by: videsh77
1 Replies

3. UNIX for Dummies Questions & Answers

how to make a bold text in vi

pls disregard got my question answered . as you can't do bold in vi (0 Replies)
Discussion started by: xzyan
0 Replies

4. UNIX for Dummies Questions & Answers

How can i make this bold

Folks; I'm writing this as a part of a script: echo "col1 hdg|col2hdg|col3hdg|" How can i make these fields shows in Bold text? (10 Replies)
Discussion started by: moe2266
10 Replies

5. Shell Programming and Scripting

How to convert C source from 8bit chars to 16bit chars?

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)
Discussion started by: siegfried
0 Replies

6. Programming

Unix Make

I need tutorial on Make utility on Unix. Any help or link appreciated. many thanks Mirko (3 Replies)
Discussion started by: mmipko
3 Replies

7. Shell Programming and Scripting

find 4 chars on 2nd line, 44 chars over

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)
Discussion started by: unclecameron
4 Replies

8. Shell Programming and Scripting

Bold chars redirect to CSV

Is there any way to redirect characters in bold to .csv file using KSH. I need to open this csv in MS EXCEL. thanks (4 Replies)
Discussion started by: param_it
4 Replies

9. Shell Programming and Scripting

Removing formats (bold) from UNIX file

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)
Discussion started by: suresh3566
6 Replies

10. UNIX for Beginners Questions & Answers

Shell script to split data with a delimiter having chars and special chars

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
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)
All times are GMT -4. The time now is 06:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy