Projects tagged ‘ncurses’ and ‘terminal’


Jump to tag:

Projects tagged ‘ncurses’ and ‘terminal’

Filtered by Project Tags ncurses terminal

Refine results Project Tags curses (4) console (4) tty (3) detach (2) c (2) screen (2) shell (2) libcaca (1) c++ (1) cplusplus (1) window (1) chat (1)

[6 total ]

1227 Users
   

Screen is a text console window manager that generates virtual terminals (PTYs) for interactive processes. A scrollback history buffer allows copy&paste, a detach feature saves your session for later reconnect.
Created over 3 years ago.

3 Users
 

Created about 1 year ago.

1 Users

CL-Ncurses is a curses interface for Common Lisp on Unix and Windows platforms, licensed under a MIT-style license. CL-Ncurses uses UFFI for foreign bindings and it is developed on SBCL and Debian ... [More] GNU/Linux, Mac OS X and Windows. Thanks to Nikodemus Siivola who did the initial work and gave me the ok to complete the library. [Less]
Created 10 months ago.

0 Users

The simple way"Bash simple curses" give you some basic functions to quickly create some windows on you terminal as Xterm, aterm, urxvt... An example is given: bashbar. Bashbar is a monitoring bar ... [More] that you can integrate in tiling desktop (Xmonad, WMii...) The goal of Bash Simple Curses is not done (not yet) to create very complete windows. It is only done to create some colored windows and display informations into. You are using Bash simple curses ? Please Click on following button ! .gadget-title { margin-bottom: 2px; } function resizeIframeHandler(opt_height) { var elem = document.getElementById(this.f); if (!elem) return; if (!opt_height) { elem.style.height = undefined; } else { opt_height = Math.max(10, opt_height); elem.style.height = opt_height + 'px'; } } gadgets.rpc.register("resize_iframe", resizeIframeHandler); gadgets.rpc.register('set_title', function(title) { var elem = document.getElementById(this.f + '_title'); if (elem) { elem.innerHTML = gadgets.util.escape(title); } }); Why ?Because bash is very usefull, there are command to do whatever you want. With curses you can create a little bar to display informations every second, you can change an output command to display a report... So, we need an easy and usefull library to quickly create this kind of views. This is why you can try Bash Simple Curses Example: the bashbarBash bar is the given example that show system informations. You only have to resize your terminal window and place it on left or right. This screenshot is made on Xmonad: this is the code used: #!/bin/bash . `dirname $0`/simple_curses.sh main (){ window "`hostname`" "red" append "`date`" addsep append_tabbed "Up since|`uptime | cut -f1 -d"," | sed 's/^ *//' | cut -f3- -d" "`" 2 "|" append_tabbed "Users:`uptime | cut -f2 -d"," | sed 's/^ *//'| cut -f1 -d" "`" 2 append_tabbed "`awk '{print "Load average:" $1 " " $2 " " $3}' < /proc/loadavg`" 2 endwin window "Memory usage" "red" append_tabbed `cat /proc/meminfo | awk '/MemTotal/ {print "Total:" $2/1024}'` 2 append_tabbed `cat /proc/meminfo | awk '/MemFree/ {print "Used:" $2/1024}'` 2 endwin window "Processus taking memory and CPU" "green" for i in `seq 2 6`; do append_tabbed "`ps ax -o pid,rss,pcpu,ucmd --sort=-cpu,-rss | sed -n "$i,$i p" | awk '{printf "%s: %smo: %s%%" , $4, $2/1024, $3 }'`" 3 done endwin window "Last kernel messages" "blue" dmesg | tail -n 10 > /tmp/deskbar.dmesg while read line; do append_tabbed "$line" 1 "~" done < /tmp/deskbar.dmesg rm -f /tmp/deskbar.dmesg endwin window "Inet interfaces" "grey" _ifaces=$(for inet in `ifconfig | cut -f1 -d " " | sed -n "/./ p"`; do ifconfig $inet | awk 'BEGIN{printf "%s", "'"$inet"'"} /adr:/ {printf ":%s\n", $2}'|sed 's/adr://'; done) for ifac in $_ifaces; do append_tabbed "$ifac" 2 done endwin } main_loop 1Another Examplethis capture shows you that you can do whatever you want: Code is: #!/bin/bash source $(dirname $0)/simple_curses.sh main(){ window "Test 1" "red" "33%" append "First simple window" endwin col_right move_up window "Test 2" "red" "33%" append "Multiline is allowed !!!\nLike this :)" append "This is a new col here." endwin window "Test 3" "red" "33%" append "We can had some text, log..." endwin window "Test 4" "grey" "33%" append "Example using command" append "`date`" append "I only ask for date" endwin col_right move_up window "Test 5" "red" "34%" append "We can add some little windows... rememeber that very long lines are wrapped to fit window !" endwin window "Little" "green" "12%" append "this is a simple\nlittle window" endwin col_right window "Other window" "blue" "22%" append "And this is\nanother little window" endwin } main_loopHow nice !And just with libcaca "img2txt" command, you can have fun: Cool, isn't it ? [Less]
Created 4 months ago.

0 Users

Doneyet is an ncurses based hierarchical todo list manager written in C++. If you give it a whirl let me know! I'd be happy to hear who's using it and any feature requests! Mostly, I use it for: ... [More] Keeping track of things you need to do. Tracking start and finish times and dates for tasks. Generating lists of work completed in a given time frame. Tons of other stuff! InformationDoneYet is a filter-based todo list manager. Currently there are only four filters but in future versions there will be more and they will be user editable. Currently the filters consist of: Show All Tasks - This shows all tasks in the current project. Show Unfinished Tasks - This shows any task with a status of unstarted, in progress, or paused. Show Completed Tasks - This shows only tasks that have a completion date within 7 days of now. Find - This filter takes a user specified string and shows any that match. This uses case-sensitive search. SavingDoneyet will save on quit, or when choosing 'Save' from the 'Project' menu. Key ShortcutsDoneyet is used primarily through key commands. There is a menu system in place but not everything can be achieved through it. The key commands are as follows: A - Apply the Show All Tasks filter. a - If a task is selected, add a new subtask of that task. If no task is selected add a root level task. M - Show the menu bar. j and k - Change menu item. l and h - Change menu. Return - Select the selected menu item. Escape - Hide the menu bar. m - Move the currently selected task. Note this doesn't work for root level tasks yet. k/u/Up Arrow - Move selected task up. j/d/Down Arrow - Move selected task down. Return - Place task at current position. Escape - Place task to where it was originally. n - Add a note to the selected task. v - View the notes of the selected task. j - Selected next task. k - Select previous task. Escape - Select no task. e - Edit selected task. d - Delete selected task. c - Toggle collapsed state of selected task. R - Apply the Show Uncompleted Tasks filter. C - Apply the Show Completed Tasks filter. f - Apply the Find Tasks filter. S - Save the project. Space - Toggle the status of the selected item. White is unstarted, green is in progress, blue is completed and red is paused. q - Quit. Menu SystemThe menu system also contains the 'Plain Text' menu item in the 'Generate' menu. This creates a text file of whatever is currently filtered in /tmp/snippet.txt and then calls less on that file. A potential use of this is reporting weekly progress in email. Copying directly out of the ncurses window is difficult and time consuming. This however generates a plain text version with no borders. Screenshots [Less]
Created 12 months ago.

0 Users

Coptic IM is a text-based (ncurses) instant messenger written in C. It aims for full UTF-8 support and portability.
Created 12 months ago.