Questions tagged [curses]
Curses is a library for controlling Unix-style terminals
42
questions
13
votes
3
answers
3k
views
A Simple Tetris game made with C++ and ncurses
I made a Tetris game with C++ and ncurses. The game implemented the most core rules of the game such as 7-bag system or familiar rules you know about the Tetris, but lacks some features - for example, ...
11
votes
2
answers
2k
views
CAT: Cat Approved TUIs
Cat
Hello everyone! I am working on this TUI framework which aims to abstract the ncurses library. I was wondering how understandable it is, and what I can improve! Any feedback is welcome!!
My ...
1
vote
0
answers
120
views
Python Local/Remote File Manager & RSync Terminal User Interface (TUI)
I have been working on a Python Curses terminal user interface for RSync for a little while now. I recently visited code review and recieved some help with cleaning up the code to make it more ...
3
votes
1
answer
114
views
Python File Explorer / RSync Terminal User Interface
I've been working on my first python program for a few weeks now and I feel like the program is at a decent stage to begin sharing. The premise was to create a file explorer that eases the use of ...
4
votes
1
answer
222
views
Multithreaded MVC game engine
This is an attempt at a multithreaded model-view-controller based engine for 2d console games (board games, roguelikes that sort of thing.) The code below will provide a fully working example but is ...
1
vote
1
answer
97
views
Command-line sentence-by-sentence EPUB reader in Python
This is a command line application which displays the text of an EPUB one sentence at a time.
I am going to make it more robust, including:
make the segmentation more accurate, because it currently ...
3
votes
1
answer
340
views
Displaying a "map" with curses and python
I started making a game in curses, but I feel like I am displaying the map inefficiently and ineffectively.
Here's the code (only the relevant parts):
...
1
vote
0
answers
143
views
First c program: Snake with ncurses
Six month ago I started studying C as my first programming language and a couple of weeks ago I decided to write snake as my first program. The program is written with ncurses and contains four ...
1
vote
1
answer
760
views
Tetris clone in C
I just finished writing an ncurses-based Tetris clone in C. It's only my second project of this size, the first being a Snake clone. I would really appreciate any and all suggestions/improvements as I'...
15
votes
4
answers
1k
views
A top-like live monitor for virsh/kvm/qemu VM's
I needed a tool to monitor VM's running on my server in relatively real-time (similar to top or the many variants out there). The main things I need to keep track ...
3
votes
0
answers
660
views
Snake game with multiple snakes
Firstly, I wrote standard snake game, then I decided to increase difficulty and made game with various snake number. My main point was to try the curses module, the second - to create game with OOP ...
5
votes
1
answer
2k
views
15 Puzzle in Python
This is a playable 15 puzzle game in Python and Curses. It consists of 2 files, a backend called fifteen.py and a frontend called ...
5
votes
1
answer
208
views
Terminal interface audio player based on VLC & Curses
I'm working on an audio player with a terminal interface. I'm designing it for eventual use on a Raspberry Pi with a 480x320px display.
I've broken the code into three main files with the intention ...
12
votes
2
answers
3k
views
Python Curses input screen
This is my first TUI program implemented via the curses module for Python.
I use the program to input some data (numbers only) via the terminal, which are then saved to a .txt file.
Any kind of ...
14
votes
1
answer
664
views
Ncurses Snake game
I decided to write a little snake game in c++ to practice and as an opportunity to learn ncurses. It turned out to be much bigger than I anticipated but since I've never really written anything big, I'...
4
votes
1
answer
270
views
Blackjack Game in Python 3/curses
You were all so helpful with my Tc Tac Toe games in C. I was encouraged to put it up on GitHub and two very helpful users refactored it in ways that really taught me a thing or two. While I have ...
8
votes
5
answers
909
views
Tic Tac Toe in C w/ ncurses Revision
Someone in this thread said I could ask for a review of my revision:
Ncurses Tic Tac Toe with simplistic AI
I re-wrote it from scratch using the suggestions from the answers. In particular I did the ...
0
votes
1
answer
82
views
Calculating the volume of a box
I've been studying more C using C Programming: A Modern Approach: A Modern Approach 2nd Edition by K.N. King as well as reading the comp.lang.c FAQ and the Code Review section here on Stack Exchange ...
15
votes
3
answers
1k
views
Ncurses Tic Tac Toe with simplistic AI
I have read your rules and in particular the part about bite-sized portions, so I am apprehensive about posting this but want to do it anyway. I have recently begun getting into C and in particular ...
1
vote
0
answers
260
views
Battleship game in python3 and the unicurses libary (oop)
In order to learn Python and Curses programming I am in the process of creating a Battleship game for the console. At the moment I struggle more on object oriented programming and structuring the ...
10
votes
1
answer
607
views
Conway's Game of Life implemented in Python
I'm a Python novice and decided to give Game of Life a try in Python 3:
...
4
votes
0
answers
1k
views
Snake in Haskell with Ncurses
I've created the Snake implementation in Haskell. User input and graphic is handled by the Ncurses library.
The goal of this question is to get the feedback on what can I improve to make it more ...
2
votes
0
answers
66
views
PDcurses clock using abstract factory design
I am currently learning how to use PDcurses and decided to make a clock with it. **NOTE: this Watch that uses the abstract factory design pattern is not the same as this question!!. This question is a ...
1
vote
1
answer
506
views
PDcurses library menu.h extention
I am currently learning how to use PDcurses in VC++ 2015 Community, and I noticed that menu.h is not implemented so I decided to extend the library for my own use (feel free to just copy the code if ...
8
votes
1
answer
1k
views
NCurses-based Tetris game in C++
What sticks out and what would you have done better in this termina-tetris implementation? I do not intend to use namespaces or split it up into multiple files.
...
6
votes
1
answer
751
views
Python word wrapping function
I'm attempting to make some ui tools for my python ncurses application, and I needed a word wrap function. It works pretty well, but trying to read it is frustrating. I'm specifically looking for ...
12
votes
2
answers
3k
views
Snake with ncurses in C
I've implemented a version of snake using GNU ncurses, and I'd appreciate some feedback! There are two main files, a main.c file that houses the ...
5
votes
1
answer
3k
views
Tetris clone in C++ using ncurses
Recently, just for fun, I've created a clone of the widely popular game Tetris using C++. Since I am still a novice when it comes to C++, I would really appreciate all the feedback I can get from ...
4
votes
2
answers
884
views
Creating a border using ncurses
The biggest question is if it's worth it to use a useless if statement to make the x and y ...
3
votes
1
answer
109
views
Looping input function
Currently, I have a function that loops to gather input for program execution, but I feel that it is a bit lacking, overthought and unoptimized. I would love any input on the process, coding style, or ...
2
votes
0
answers
137
views
Stopping ncurses printing with key presses
I've been updating a little text-based game of mine to have the text roll out over a time period to give the appearance that it's being typed. I'm doing this by using non-blocking output with ncurses.
...
4
votes
1
answer
115
views
Game of Runes: version 3
I've written a very revised and developed version of the game of Runes. The major changes are listed:
Convert runes to use curses.
Add color-coding to the pieces.
Change the board to use the ...
20
votes
3
answers
35k
views
Tetris in C, in 200 lines
I aimed at making fully functional (real) Tetris, in the shortest way possible in C. The result is a terminal game for Linux, that uses ncurses. I made it for my friend, who wanted to play it on his ...
17
votes
3
answers
8k
views
Snakes Game Using ncurses
This is my version of snakes in C++ using the ncurses library. I would like to hear from you how this piece of code can be improved and general advice for future projects regarding coding and ...
10
votes
1
answer
561
views
Simple pager in C
I have written a simple pager in C. It works fine for most things, but I'd like to know how it can be improved. Specific things I'm looking for are if there are size and/or speed improvements to be ...
8
votes
1
answer
306
views
Function to wrap words in a text editor without breaking them
These are 3 functions I created in C language to read in a text file, remove the carriage returns from it in order to display on the screen, and display the file on screen wrapped with the words of ...
8
votes
2
answers
1k
views
UNO for ncurses
I've been teaching myself C for the last few months. As a learning exercise, I set out to write an ncurses implementation of the classic card game Uno, mostly because it was was one of the simpler ...
10
votes
2
answers
178
views
Roguelike-ish template game
I have created a simple program that is supposed to be the core of a roguelike game. The program uses ncurses, and all that is supposed to happen is you choose a race and class, then choose an arena. ...
15
votes
2
answers
370
views
Mengenlehreuhr in Python
Telling the time based on the "set theory principle", the Mengenlehreuhr consists of 24 lights which are divided into one circular blinking yellow light on top to denote the seconds, two top rows ...
8
votes
4
answers
1k
views
Another Conway's Game of Life Simulation (With colored populations!)
This is my near-final version of Conway's Game of Life, with inherited colors using PDCurses. Any new spawned cells take on the most frequent color surrounding it when it spawns. This leads to single-...
4
votes
1
answer
755
views
MP3 player for Linux
I wrote a Python MP3 player for Linux using PyGame, with a curses GUI and a mouse-only interface.
It's purely for personal use.
It hasn't been polished yet, but for now I'd like to know what I've ...
4
votes
1
answer
317
views
Text-based vertical scroller game
I'm making a simple text game using the pdCurses library and a few other minor things like a vertical scroller in which you avoid the randomly-generated walls.
There are two walls on left and right ...