LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-28-2006, 11:21 AM   #1
tracer
LQ Newbie
 
Registered: May 2002
Posts: 17

Rep: Reputation: 0
Terminal Messaging - POP-Ups?


I know that I can send terminal "Alerts" to other TTY's with a simple

echo "Test Message" | write user /dev/pts/10

But are there any command line utilities to make this appear as a ANSI/SCO style pop-up box on the recipients terminal? Our users are using a terminal based software system (with ANSI graphics) and the messages simply do not stand out

Any suggestions?
 
Old 04-29-2006, 07:03 PM   #2
burninGpi
Member
 
Registered: Mar 2006
Location: Fort McMurray, Canada
Distribution: Gentoo ~amd64
Posts: 163

Rep: Reputation: 30
With printf, you can colour the message:
Code:
printf "\x1b[33mTest Message\x1b[0m\n"
will write
Test Message

you can also make the message blink, bold, italic, and bg/fg colours.
here are the codes I know (replace 33 in the example with the code):

1 bold
4 underline
5 blink
7 bg/fg inverted
30-37 colours
40-47 bg colours

they can also be combined in th form x;y or x;y;z
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pop-ups in Browsers dehuszar Programming 3 01-08-2005 02:10 PM
pop ups brokenflea Slackware 1 03-25-2004 02:52 PM
Blocking Pop-ups Time Lord Linux - Software 6 09-23-2003 07:23 AM
Pop ups mylo2003 General 10 09-12-2003 03:37 PM
pop ups popcorn5714 Linux - Software 3 03-04-2003 10:30 AM


All times are GMT -5. The time now is 01:31 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration