dswp.de http://www.dswp.de/old/ |
|
how to reduce chat font size? http://www.dswp.de/old/hardware-dreams/how-to-reduce-chat-font-size-t5013-20.html |
Page 3 of 3 |
Author: | Pirat [ 03.07.12 ] |
Post subject: | Re: how to reduce chat font size? |
eXtr33m wrote: Woot! Can you describe what's the program for?? I always had an idea of parsing urt output for misceleanous reasons... [...] I don't know what exactly natirips' parser does, but in case somebody just wants to add time stamps to their UrT log: Code: sudo -H -u $USER_URT mumble-overlay $destdir/urt.sh $prog $parms \ |& while read line; do echo -E "$(date +'%Y-%m-%dT%H:%M:%S') $line" \ | script-declutter >> "$LOGFILE" done script-declutter is a slightly modified version of a script I found on the web and which filters ^H etc. . |
Author: | natirips [ 03.07.12 ] |
Post subject: | Re: how to reduce chat font size? |
What my program does is color the terminal output. I.e. if the program gets "^3yellow_guy: ^1red text" then it will color background red (to draw attention to chat and it will color his name yellow and the text red.) Pictures will explain better: Attachment: screenshot5.png Attachment: urt2.jpg This way I get: - long history of messages - messages do not clutter UrT window / my view (they are only shown for 1msec) - unlike optimized exe I cat tell different types of messages apart by background color(hit messages are green (You hit...), light blue (You were hit...), blue (... had xx% Health.); chat is red; the rest it on black background.) - colors (^1^2^3...) remain even though it's a linux terminal Edit: Without this program all text would be the same color. |
Author: | JRandomNoob [ 03.08.12 ] |
Post subject: | Re: how to reduce chat font size? |
Win. |
Author: | wurst [ 03.08.12 ] |
Post subject: | Re: how to reduce chat font size? |
impressive. |
Author: | natirips [ 03.09.12 ] |
Post subject: | Re: how to reduce chat font size? |
Actually, linux uses a not-so-different way to set colors. In q3 it's ^# where # is the color code. In linux, it's \x1b[38;5;#m where # is the color code. Also, for background color it's \x1b[48;5;#m . It is a little longer and the color code is more complex (256 vs. 8 colors) but essentially they both have a sequence of bytes and a number in it. I mean, the source code for the converter with all the comments and the license text it 5400bytes. |
Page 3 of 3 | All times are UTC + 1 hour |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |