k h l j
w / W
: début du mot suivant / "Bigword"
public class progressbar { | |
public static void main( String[] args ) { | |
System.out.println( "[*] Running ..." ) ; | |
for ( int i = 1 ; i < 101 ; i++ ) { | |
System.out.flush() ; | |
System.out.print( "\r " + ( i == 100 ? "100" : " " + ( i < 10 ? " " + i : i) ) + " % " ) ; | |
System.out.print( "[" ) ; | |
for ( int j = 0 ; j < i-1 ; j++ ) { System.out.print( "=" ) ; } |
The Bewitched Hands - The laws of walls | |
The Bewitched Hands - Thank you, goodbye, it's over | |
Some Velvet Morning - How to start a revolution | |
Ellie Goulding - Your Song | |
Soma - Letters to unwrite | |
Angus and Julia Stone - Big Jet Plane | |
The Rolling Stones - Sympathy For The Devil | |
The Strokes - Machu Picchu | |
The Strokes - I'll Try Anything Once | |
Bloc Party - Banquet |
/* | |
* This is a simple example of "scrolling" form with ncurses. | |
* It use "page" to allow forms with more fields than your window can print. | |
* | |
* It prints a "label" (inactive field) and a regular field and let you | |
* "scroll" pages of the form. | |
* | |
* How to compile: | |
* gcc -o test scrolling_form.c -lform -lncurses | |
*/ |
/* | |
* Very simple pop-up using ncurses form and menu library (not CDK). | |
* | |
* The buttons are made from items and the fields are made from... well fields. | |
* | |
* How to run: | |
* gcc -o test -lmenu -lform -lncurses ncurses-simple-pop-up.c -g && ./test | |
*/ | |
// Depending on your OS you might need to remove 'ncurses/' from the include path. |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <string.h> | |
#include "popup.h" | |
static WINDOW *win_body; | |
static WINDOW *win_form; | |
static WINDOW *win_menu; |
/* | |
* This is a simple example of va_list function in ncurses. | |
* I use it to wrap mvwprintw() and print something in a footer. | |
* | |
* How to run: | |
* gcc -o test va_list_ncurses.c -lncurses | |
*/ | |
#include <ncurses.h> | |
#include <stdarg.h> | |
#include <stdio.h> |
/* | |
* Simple ncurses form example with fields that actually behaves like fields. | |
* | |
* How to run: | |
* gcc -Wall -Werror -g -pedantic -o test fields_magic.c -lform -lncurses | |
*/ | |
#include <ncurses/ncurses.h> | |
#include <ncurses/form.h> | |
#include <assert.h> | |
#include <string.h> |
/* | |
* A simple example of json string parsing with json-c. | |
* | |
* clang -Wall -g -I/usr/include/json-c/ -o json_parser json_parser.c -ljson-c | |
*/ | |
#include <json.h> | |
#include <stdio.h> | |
int main() { | |
struct json_object *jobj; |