|
Can tcgetattr() get the terminal screen size? Hi One of the ways of getting a terminals size is doing using ioctl() with the TIOCGWINSZ option but this is non portable AFAIK. Is there a way of getting the size using the tcgetattr() function? I can't find a reference to this functionality in the man page or online. Thanks for any help B2003 ... 19 Jun 2008 01:20
Solution for terminal input problem (my english is bad, sorry) Hi, this thread is for programmers who like console applications (ncurses based). As you all know, terminal emulators have a big problem with user input. Their input system is good for CLI, but really sucks when using full screen applications like vim, emacs, mc, ncmpc, htop, rtorrent,... 19 Jun 2008 01:20
Learnign select() STATEMENT: I have created a TCP echo server-client pair where client sends some text to server and then server sends back the same text to client and then client prints it onto the screen. PROBLEM #1: I can't understand the select() :( PROBLEM #2: I have edited my server program to use select() and it has ... 20 Jun 2008 08:08
Monitoring file operations of Program Hi we do have a program and we want to know which files the program is opening, in which sequence, which mode. lsof is giving snapshot of open files, but we do require more info to debug,... we do want to have the sequence, mode,open,close,full path. any tool/utility ? [i may think of truss/strace to tra... 19 Jun 2008 01:20
Logical and structural inconsistencies with the Single Unix Specification version 3 (SUS SUSV3) I have a few problems with the single UNIX specification version 3. I downloaded the HTML version of the specification, and have found it to be laking in logical/descriptive quality and structural layout. My main questions are: Do I have the correct standard, i.e. do my problems correspond to the "real" standar... 19 Jun 2008 01:20
Header file for size64_t? On Jun 13, 10:07 pm, bernd <bew...(a)gmx.net> wrote: Hi everyone, in which header-file will I find the definition (typedef) for type size64_t? It's not ISO C or POSIX. If you look for an unsigned integer of 64 bits, use <stdint.h> and uint64_t. (both ISO C and POSIX) ... 19 Jun 2008 01:20
finding default x11 Dear all I know that the setup of unix with x11 windowing system will have settings for the default windowing system ie gtk+. Is there a quick way to find this out within the c program once its compiled as it would be nice to use mozillas xul method od defining gui's and to be able to load the library for... 19 Jun 2008 01:20
Excution causes No Match error Hello, I shipped an executable to some users recently on both Linux and Solaris. After getting them to run the particular app they experiences the following: # ./myapp -param1 -param2 ../myapp: No match. What would be the reason that it behaves like this? In one case a person said they overcame this by run... 21 Jun 2008 15:50
When to use stderr, and when stdout? Hello, Is there any convention as to what messages should go to stdout and what to stderr? More specifically, where should I log errors that do not prevent the program from finishing what it is doing? Regards, Angel Tsankov ... 19 Jun 2008 01:20
fwrite over a pipe I was just browsing some of the old discussions in this forum when I came across the following http://groups.google.com/group/comp.unix.programmer/browse_thread/thread/9d7632464b8a0cc9/7f49ab361220d4fa?hl=en&lnk=st&q=fwrite+pipe+problem#7f49ab361220d4fa And I quote "Note that you must also be careful to flush... 19 Jun 2008 01:20 |