I use ioctl to get the cosole window size (the SSH window).
I use the following code:
When I debug on linux pc, it gives me the correct window width. But after I try it on router (this is my enventual place where my code shall run), ioctl always give me 0 width, that is, numberOfColumnsOfTerminalWindow == 0. but the returnValue is 0 which means that the function call succeeds.
I use ioctl to get the console window size (the SSH window). I use the following code: struct winsize ws; int returnValue = ioctl(pCommandStructure->terminal, TIOCGWINSZ, &ws); int numberOfColumnsOfTerminalWindow = ws.ws_col; When I debug on linux pc, it gives me the correct window width. But after I try it on router (this is my enventual place where my code shall run), ioctl always give me 0 width, that is, numberOfColumnsOfTerminalWindow == 0. but the returnValue is 0 which means that the function call succeeds.
A couple of days I started using latex and have still one question about the table width. My table is too wide for a page. How can I adjust it so that it fits on the full width of a page? Can I use a command or do I have to specify each column widths by hand?
My table looks like this;
I did try several commands likeextwidth, esizebox, setlength but didn't found the solution yet.
How do I find out how many characters fit into a terminal window horizontally and how many lines the terminal window is high (i.e. how many rows and columns are visible - the width and height)? I am using c++ and Linux Mint 8 - Gnome.
My task bar is quite broad. so when ever i open more than 6 windows at a time then the task bar adjusts the tabs in two row. how can explicitly specify the width for those tabs. so that they all fit in one line.
This has bugged me forever.....and I mean really bugged me. The 'pixel width' is too low, such that trying to get my mouse to line up just perfectly on the window edge to get the resize icon, is very difficult. After a bit of searching, I discovered Alt F8, which, for those that don't know, is a resize shortcut and works very well, however, I will still use the 'edge resizing' option quite a bit, and would like to widen the 'line' a few pixels. Is this possible in a user settings file, or is this hardcoded? I am learning to develop, so I wouldn't mind looking into this one as a beginning project. If that's the case, could someone point me to the appropriate package?
In 10.4 I had set my default terminal size to my screen width - I type some long commands. After running an update this morning, my terminal comes up in the install default size. Using the preferences dialog, I cannot find the control to set the default width. Has it been removed? I hope I'm looking in the wrong place, but I have a chilling feeling that it's been dropped or perhaps just accidentally commented out.
Way back from Windows 3.x days to the latest 64bit Windows 7 (classic/standard theme)there is a way to make the window edge border wider then 1 pixel.I often use 3 to 5 pixel to make it easy to grab on hi-resolutions displays and hi DPI monitors.There doesn't seem to be an easy or obvious way to do this with the Gnome X-Windowing system?
I am trying to write commands that extracts the height and width of a video file via ffmpeg. I have the following working so far:
This gives the following answer in widthxheight format with an extra , 720x480,
How can I instead run 2 separate commands that give me height and width separately? I want some command to give me 720 and another command to give me 480 and I dont need the x or the ,
If you need to know this is what ffmpeg -i videofile.mov 2>&1 gives as output
I want to modify ioctl TIOCMWAIT to return the same thing that ioctl TIOCMGET returns. Currently wait returns an int of zero or -1 when a change in status occurs. Why not make it return the new status?
This will make the operation faster by not requiring another call to ioctl.The extra call requires 2 to 16 uSeconds to complete on my x64 laptop. How would I make this proposal to the kernal people?
I'm in the process of debugging and compiling about sixty FORTRAN 95 programs and could use a little bit of your help before my brain is fried and fingers are cramped. Thanks for your time!
I'm creating a usb device driver that needs to be able to read from two different endpoints. I couldn't see any way of having two read functions in the driver, so I got round this by reading from one of the endpoints with read, and the other with ioctl.However this hasn't worked, the ioctl call from c returns -1. I added a printk command in the driver in the ioctl function, however looking at kern.log I can see that this function is never being called. Does anyone have any ideas as to what the problem called be, or a better method of being able to read from two different endpoints?
I have looked and cannot find how to change the width of the scroll bars, I find mine a bit too small, i would like to make them wider. How do you do that in 10.04?
So this morning I just upgraded my laptop from OpenSuSE 11.2 to 11.4. I am using the Gnome Desktop (2.6.37.6-0.5-desktop #1 SMP PREEMPT 2011-04-25 21:48:33 +0200 i686 i686 i386 GNU/Linux).
As of right now the "Taskbar" at the bottom of the desktop, does NOT stretch all the way across the bottom (meaning it would start on bottom-left edge and go to the bottom-right edge) of the screen. Right now it is sort of centered at the bottom, and its size changes depending on how many windows are open.
So is there any way to set it to a fixed width (by that I mean I want it to take up the entire bottom of the screen x-amount of pixels high, etc..
I am logging the output of: top -b -n1 -c so I can keep track of which processes are using how much memory and CPU each minute. When top shows the full command line (-c), the command line text gets truncated at the edge of the screen. This is perfect when running and displaying in a terminal. However, I am sending STDOUT to a file for parsing later and want the full command name logged. Is there a way I can tell top to use a specific screen width? (I know it maxes at 512, that would be fine)
Is there a better way to achieve a similar goal: get periodic stats about which processes are running and how many resources they are consuming?
Using "List View" in Nautilus (Ubuntu 9.10), is there a way to preserve the column width? If I manually change the column width and click into another folder, the width automatically reverts to the old width when I return.
I have a mixed set of images, each one having a slightly different resolution with a slightly different aspect ratio from the other images.I have tried using commands like:convert -resizeand:convert -cropHowever I can't seem to figure out the correct command to make all images have a width of 1024 and an aspect ratio of 6x4, without causing the image to stretch or get squashed.
I merged my toolbars into one toolbar. This results in having my bookmarks toolbar next to my URL bar.
The problems is that the URL bar apparently chooses the biggest width available with priority over the bookmarks bar, being merged into simply an arrow, which I have to click in order to see my bookmarks.
I would like to give my URL bar a fixed width so that I can see my bookmarks toolbar or to leave the URL bar with a flexible width as long as it doesnt have priority over the bookmarks bar.
For some reason it seems like my Thunderbird 3.x has a limit of 80 chars per line enabled, so when I edit a message, it puts a line feed on or before that limit.
I think it could be set when I installed Enigmail for using GPG, that changes some default values, but I'm not sure.
Anyway I would like to avoid this issue, so I can write lines as long as I want, but I've not found a configuration option to do this within "Preferences" dialog.
I'm using Ubuntu 10.04 LTS and on my laptop I'm finding it very inconvenient to manage multiple running application interfaces and windows because of my screen being so small. Between the whole Applications, Places, System menus and system tray I don't really have much room to work with. I know thats why Ubuntu's Gnome environment comes with two pannels, but again, I need all the screen space I have and shortening my view of my windows would be counter-productive thats why I'm only using one. So my base question is: Is there a way to shorten the width of the minimized windows to a more manageable size, and how? I would also be fine with just an icon for the indicators instead of the text.
What If I wanted to scan a string like the following...
[Code]...
Anyhow just one giant string that's longer than my screen's width. If I simply copy and paste that string after a grep command, it seems that the terminal inserts newlines at the terminal's width and therefore not the whole string goes in. Even if I insert a quote before the beginning of the string and then paste it in, terminal still reads in a newlines somehow and obviously says command not found, etc.
I'd like to widen the width of the standard vertical scrollbar in firefox 3.6 or above. I know now that it is not an edit in about:config and appears that you have to edit in user.js, prefs.js, or in the Profile folder but I 3 prefs.js in my profile folder -
prefs.js prefs-1.js and prefs-2.js
Secondly, I cannot find the user.js file. its location if it is still a viable file to edit. which (or what) prefs file I should concentrate on for this edit.
Plainly, it shouldn't be this tough to adjust the vertical scrollbar width, in a perfect world it would be adjustable though Windows. Anyway, this old fart's having difficulty grabbing that scrollbar.