Search Results

Search found 6018 results on 241 pages for 'terminal emulator'.

Page 20/241 | < Previous Page | 16 17 18 19 20 21 22 23 24 25 26 27  | Next Page >

  • Terminal-based snake game: input thread manipulates output

    - by enlightened
    I'm writing a snake game for the terminal, i.e. output via print. The following works just fine: while status[snake_monad] do print to_string draw canvas, compose_all([ frame, specs, snake_to_hash(snake[snake_monad]) ]) turn! snake_monad, get_dir move! snake_monad, specs sleep 0.25 end But I don't want the turn!ing to block, of course. So I put it into a new Thread and let it loop: Thread.new do loop do turn! snake_monad, get_dir end end while status[snake_monad] do ... # no turn! here ... end Which also works logically (the snake is turning), but the output is somehow interspersed with newlines. As soon as I kill the input thread (^C) it looks normal again. So why and how does the thread have any effect on my output? And how do I work around this issue? (I don't know much about threads, even less about them in ruby. Input and output concurrently on the same terminal make the matter worse, I guess...) Also (not really important): Wanting my program as pure as possible, would it be somewhat easily possible to get the input non-blockingly while passing everything around? Thank you!

    Read the article

  • Is there a way to open an "extra" temporary workspace (via terminal, preferably)?

    - by AmagicalFishy
    [Running Ubuntu 14.04, Unity] So, I have workspaces enabled and all that jazz. I know one can set some option so that Ubuntu defaults to more than four workspaces—but that's not what I want. Currently, I'd like a fifth workspace, but only temporarily (that is, I don't want it to be the default that five open. I just want it for today, and possibly w/e other day I need it). Is there a way to do this?

    Read the article

  • Why are Virtual Terminal Blank using NVIDIA propietary drivers?

    - by Jhonnytunes
    When using nouveau the fps are low compared to nvidia closed driver. But when booting, nvidia drivers show the ubuntu splash screen in a 900x800 resolution like nvidia its not loaded yet. When nouveau it splash in a decent resolution. The problem I'm having since karmic koala is I cant switch to virtual terminals with nvidia closed drivers. By the way, is the same PC: VAIO VPCCW19FX with NVIDIA G210M, now with precise amd64. To make easy to read the configs, I pastedbin'ed each file in differents pastes. /etc/X11/xorg.conf http://pastebin.com/Ly7n5d2T /etc/default/grub http://pastebin.com/VPBYkRVS lsmod http://pastebin.com/a7q3z9ZL lspci http://pastebin.com/bd4vPCPf

    Read the article

  • How to enable tab completion from the terminal specific to the executable

    - by Synesso
    In bash, I believe it is possible to enable tab completion on the terminal for terms that are specific to the executable being invoked. For example, given an executable "eat" with valid arguments {cake, carrot, banana}, typing 'eat car' should complete to 'eat carrot'. I believe this is possible because I have seen it with 'ant' tab-completing its targets (though how this was set up I don't know). How can this behaviour be implemented?

    Read the article

  • OS X terminal command to resolve path of an alias

    - by Josh
    I'm writing a shell script which will rsync files from remote machines, some linux, some macs, to a central backup server. The macs have folders on the root level containing aliases of all files/folders which need to be backed up. What is a terminal command I can use to resolve the path to the files/folders the aliases point to? (I'll need to pass these paths to rsync)

    Read the article

  • dyld: Library not loaded error when running command in terminal

    - by Denis
    Hi, When running some commands in the terminal, I get the following error message dyld: Library not loaded: /opt/local/lib/libjpeg.62.dylib Referenced from: /opt/local//lib/libTIFF.dylib Reason: no suitable image found. Did find: /opt/local//lib/libjpeg.62.dylib: can't map /opt/local/lib/libjpeg.62.dylib: can't map Trace/BPT trap fyi my xcode is up to date Any idea how to understand and fix this problem? Thanks

    Read the article

  • Generate terminal graphics

    - by Werner
    Hi, which open source software options exist for generating terminal graphics? I mean, there is for instance the nice matplotlib, which can generate beautiful plots from data, in PNG or similar formats. But there are similar alternatives for generating just kind of ascii graphics? Thanks

    Read the article

  • Emulate terminal services

    - by cloudstrif3
    Hello, I am a seasoned Delphi developer and would like to create something like seamless terminal services where an application is executed on a server but appears on the the desktop of the client. To someone working on the server i don't want them to see the remote application running (except if they looked in at the list of running processes). Im lost as to how to go about this, where to start, how to get an application to render to a surface other than the servers desktop. Any suggestions would be most appreciated.

    Read the article

  • What terminal emulators are available for heavy terminal users?

    - by Noah Goodrich
    I spend a lot of time at the command-line during the workday and at home too since I run Ubuntu exclusively. I've been using the default gnome terminal but I've reached a point where I'd really like to get my terminal tricked out so that my common tasks are as easy as possible. Specifically, I find that I spend of lot of time browsing code in the terminal and working in config files. On my wish list would be: Ability to have multiple screens, tabs, windows (I don't have a preference at this point) that I can easily switch between. Color coding for everything Easy to modify the aesthetics of the terminal (is it vain to want my terminal to look nice?) such as transparency, borders, etc.

    Read the article

  • Why does this script not open parallel gnome-terminals on a server?

    - by broiyan
    Why am I not able to have parallel gnome-terminals on my server while I can on my client. Here is a test that illustrates the problem. #!/bin/bash # this is the parent script gnome-terminal --command "./left.sh" sleep 10 gnome-terminal --command "./right.sh" #!/bin/bash echo "this is the left script" read -p "press any key to close this terminal" key #!/bin/bash echo "this is the right script" read -p "press any key to close this terminal" key When I run this on a regular ubuntu desktop (maverick) I see two terminals after 10 seconds. When I run this on a maverick server at a server farm, the second window does not appear until after I close the first one and wait 10 seconds. I am using tightvncserver to view the server desktop. (I could have simplified a bit more. The 10 second sleep is extraneous to the problem. In my real world application I need the first terminal to do some real work before starting the second. The problem probably still exists even if there is no sleep.)

    Read the article

  • How to change the terminal to SCO compliant

    - by kaushik
    I have a server in which SCO 5.x is installed. I have several thin clients which were supplied from our head office. Those thin clients have linux pre-installed in them. When we tried to connect to our SCO server, we have found out that the thin client does not support SCO terminal type. So the program (Which is written in Oracle forms) is not working correctly. Lots of function keys stopped working and screen also not getting refreshed correctly. Hence we decided to use Ubuntu Live USB keys in thin clients. Now the problem is how can we change the terminal type to SCO in ubuntu ? Means I want it in the text terminal (Alt+Ctrl+F1,F2...) (Not in xterm...graphical terminal emulators). Does ubuntu support SCO terminal type ?

    Read the article

< Previous Page | 16 17 18 19 20 21 22 23 24 25 26 27  | Next Page >