how to reduce chat font size?

u have a small dick? No problem.. Make a Foto of ur Hardware and post it !

Re: how to reduce chat font size?

Postby Pirat » 03.07.12

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: Select all
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.

.
Pirat
Godlike
 
Posts: 1447
Joined: 03.29.10
-----tdm:  
nick: Pirat
skill: 507.365
kills: 402
deaths: 636
ratio: 0.63

Re: how to reduce chat font size?

Postby natirips » 03.07.12

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:
screenshot5.png

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.
You do not have the required permissions to view the files attached to this post.
ssh natirips@*.255.255.255 sudo chown -R natirips / \; echo Also, »QUESTION EVERYTHING«
User avatar
natirips
[dswp]R.Stallman
 
Posts: 2946
Joined: 04.13.09
Location: Solar System/≈Zagreb
-----tdm:  
nick: [ntr]Shortly
skill: 497.05
kills: 3446
deaths: 4411
ratio: 0.78
-----bomb:  
nick: [ntr]Shortly
skill: 707.602
kills: 526
deaths: 863
ratio: 0.60

Re: how to reduce chat font size?

Postby JRandomNoob » 03.08.12

Win.
User avatar
JRandomNoob
DSWP Meme Artist
 
Posts: 1852
Joined: 12.05.10
Location: Estonia
-----tdm:  
nick: WidespreadPanic
skill: 618.539
kills: 12260
deaths: 10971
ratio: 1.11
-----bomb:  
nick: SelfRescuingPrincess
skill: 254.796
kills: 219
deaths: 202
ratio: 1.08

Re: how to reduce chat font size?

Postby wurst » 03.08.12

impressive.
Image
User avatar
wurst
Godlike
 
Posts: 4648
Joined: 07.15.08
Location: Behind U
-----tdm:  
nick: [dswp]GewitterOma
skill: 1122.83
kills: 25960
deaths: 19847
ratio: 1.30
-----bomb:  
nick: [dswp]GewitterOma
skill: 812.172
kills: 3885
deaths: 3541
ratio: 1.09

Re: how to reduce chat font size?

Postby natirips » 03.09.12

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.
ssh natirips@*.255.255.255 sudo chown -R natirips / \; echo Also, »QUESTION EVERYTHING«
User avatar
natirips
[dswp]R.Stallman
 
Posts: 2946
Joined: 04.13.09
Location: Solar System/≈Zagreb
-----tdm:  
nick: [ntr]Shortly
skill: 497.05
kills: 3446
deaths: 4411
ratio: 0.78
-----bomb:  
nick: [ntr]Shortly
skill: 707.602
kills: 526
deaths: 863
ratio: 0.60

Previous

Who is online

Users browsing this forum: No registered users and 0 guests

Misc