Questions tagged [console]

A mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks.

Filter by
Sorted by
Tagged with
0
votes
1answer
52 views

Line-wise input, EOF handling, and behavioral differences between implementations of getchar

I've implemented a menu system where all input calls ultimately go through io_getline, a function which reads a line of input up to the max buffer size or newline (...
2
votes
0answers
44 views

Implement easy CLI options in C using a single-file header

I'm a computer science student, and in 2 of my courses this semester we are writing short C programs to demonstrate the things we are learning about. All of these programs require command-line flags &...
1
vote
2answers
144 views

I Made a Simple BattleShip Game On C# Console

I made a simple battleship in C# console with a little AI ( just a little ) and The goal of this practice is improving my knowledge about OOP. Game Rules: 1.You Attack To The Enemy then he Attacked ...
5
votes
1answer
98 views

C# Console Snake Game

I was busy writing an answer for this question when I realized that I was busy creating a new solution without explaining what the original poster did wrong, again. So I decided to rather post what I ...
3
votes
2answers
108 views

I made a Simple Score Game in C# Console

I've created a simple score game. The goal is improving my knowledge about OOP. This is my Main method: ...
1
vote
1answer
94 views

Beginner CRUD Console Application

I wrote this basic CRUD app + simple report so I could practice talking to a db directly. I purposefully avoided repository pattern and Entity Framework and only used a library to show the coming data ...
2
votes
1answer
40 views

Implementing a News Ticker

I implemented a console version of a news ticker and I will be glad for a code review. It takes a text from the user and displays it for a given period. How may I get it better? ...
5
votes
2answers
605 views

Hangman game coded in C++

I have completed my hangman project in C++. I would like your thoughts and improvements on my implementation. Here is the code: ...
2
votes
1answer
28 views

Arithmetic quiz on the command line

I am writing a program that asks questions, takes the user's input, and responds according to whether the answer they gave is correct or not. I am looking to improve my code with respect to ...
3
votes
2answers
162 views

Print a Menu in the Command Line following SOLID

Problem Description I am building a library that helps me building TUI Apps more faster, for example printing TUI Menus and other components. I would like to get feedback on my design decisions to see ...
1
vote
2answers
45 views

Colour message prettifier in Bash

Features: messages formatted with clear borders errors sent to stderr colour handling colours can be included in other strings echoed to the screen without having ...
2
votes
2answers
61 views

ds4mac - directory switcher for macOS/Linux: the tag engine

I have this program in GitHub. It is used for switching to directories via custom tags. Here is the tag engine: com::github::coderodde::ds4mac::DirectoryTagEntry.h: ...
0
votes
0answers
21 views

ds4mac - directory switcher for macOS/Linux: the script

I have this program in GitHub. It is used for switching to directories via custom tags. Here is the main bash script: ...
1
vote
2answers
98 views

Search for text in a file

I have this implementation of Grep where I use re.search: ...
2
votes
1answer
96 views

Terminal python tic-tac-toe game

As someone that started to learn basic python programming, I decided to make a Python tic-tac-toe game for the terminal, to develop my OOP skills. I would like to know if my code has a lot of ...
4
votes
1answer
104 views

More efficient way to create an ASCII maze using box characters

I've written a C# program to generate a random maze, and then draw that maze in the Console mode using box-drawing characters, e.g. ─ │ ┌ ┐ ┬ ┼ etc. It works fine, as below, but I'm not convinced that ...
7
votes
2answers
131 views

Ncurses listview control

I am currently developing a terminal-based listview control, that uses ncurses for rendering. The main goal for the listview was to be intuitive, performant, and reusable for other projects. An ...
3
votes
2answers
106 views

CLI-Client for interacting with daemon

I have a daemon which I am able to interact with through a cli-client. The daemon will perform some tasks in future e.g. monitoring the rate at which files are added to a directory. Right now when I ...
7
votes
1answer
192 views

Stop cheating on home exams using python

Background I am teaching a course at university level, and have lately been working on creating a home exam for my students. However, the institute has given clear instructions that collaboration is ...
3
votes
1answer
58 views

Ask for user input and again on the same line

A function that asks for user input according to some criteria and again on the same line if the criteria is not met. It requires that escape character sequences be enable. ...
9
votes
2answers
919 views

Terminal Typing Game

A few weeks ago, I developed a terminal game that increases your typing speed. The game is all about typing, providing difficulty levels from easy to hard. I feel like this terminal game won't become ...
3
votes
1answer
49 views

Simple command line API client for getting quotes

Was given a take-home test as part of a job interview, which I failed due to a supposed lack of tests, logging, error handling and packaging. But I did touch upon all of these.. suggested time spent ...
1
vote
1answer
38 views

C scrabble counter with piping input

I want to start making some command line programs in C, this is a fork of something else I made but is more suitable to this site. My big question is there a better way to pipe commands? I think the ...
2
votes
1answer
92 views

A simple console in Rust that stores variables runs commands

I'm a C/C++ programmer and this is my first Rust program. A heavy simplification of the console system like used in Quake and Source engine games, that lets you set variables and run commands. I'm ...
2
votes
1answer
143 views

Minesweeper in C# Console - Board Implementation

I created a simple minesweeper game in c#, and wanted to know how to improve it. I didn't really understand how to make it so everything besides the zero opens up. How would I make my class Board ...
0
votes
1answer
172 views

for loop in one line (for python -c)

I want to use python -c to remove wheel files from the dist/ directory in my project. (*) Actually, I use the following command: ...
0
votes
2answers
102 views

C# to C++: Basic Console Replication

I'm working on converting my basic cryptocurrency miner from C# to C++ for performance reasons (I've been told that C++ is faster in many aspects). However, that aside, the focus of this post is to ...
3
votes
2answers
69 views

Console TicTacToe in C

Would you be so kind as to review my TicTacToe implementation I wrote in C? I wrote this blind (not looking up other implementations). You can find it on Github here. Any input and/or suggestions ...
0
votes
0answers
138 views

C# Console, Connect 4 Game

this is my second post here, and the second project I made. I wanted to know, how to improve my code of connect-4 made in c# for console. ...
8
votes
1answer
76 views

git-user - Working on a shared local repository with multiple users made easier

I have recently been in a situation where multiple developers worked on a shared local git repository under the same Linux user¹. As one can imagine, it can easily become a bit annoying not to commit ...
1
vote
1answer
84 views

Class showing a format similar to var_dump v1.0.5

First of all I must thank for the help given in the previous post: Class showing a format similar to var_dump RC5 Version I have it deployed in a early versio v1.0.5: https://github.com/arcanisgk/BOH-...
9
votes
3answers
2k views

Tic-Tac-Toe code using c#

I am a beginner coder and was wondering how to improve my c# console code. It makes a tic-tac-toe game. ...
4
votes
1answer
211 views

text-based RPG game in python- character selection

I am making an RPG game using python. At the moment, I have programmed choosing your character and saving it. However, today I previously asked a question ...
1
vote
1answer
102 views

Company database REPL program in Rust for Chapter 8 of The Book

Using a hash map and vectors, create a text interface to allow a user to add employee names to a department in a company. For example, “Add Sally to Engineering” or “Add Amir to Sales.” Then let the ...
10
votes
2answers
1k views

pyCMD; a simple shell to run math and Python commands

I made a command line in Python. Before I go on and add more commands, is my program made well? I don't like the huge amount of "if" statements in it. But I don't know a better way to do it. ...
3
votes
1answer
60 views

Python - Basic CLI Email Client

This is a basic CLI email client in Python. It can send plain text emails and view inbox. settings.json contains a list of SMTP and IMAP servers used for different ...
0
votes
0answers
108 views

Simple Todo CLI APP in Python with SQLalchemy

I wanted to ask you a favor. I am recruiting for the position of Junior Python Developer (my first try in IT) and I got a task to create a script to manage the task list. https://github.com/Lok3rs/...
2
votes
2answers
79 views

Simple command line parsing

I'm making a project that needs a simple cross-platform command-line parser. I made this. Hope you enjoy! ...
2
votes
0answers
42 views

Command-line parameters

Several years ago (must have been 2012 or so) I wrote a module to manage command-line parameters in a unix-like fashion. At the time, the compilers I had access to were still working their way up to ...
1
vote
1answer
420 views

Simple console chess game C++

So I implemented a simple console-based, offline player vs. player chess game in C++17. I am aware that there are multiple chess-specific features I have not yet added, but the core gameplay works ...
1
vote
1answer
89 views

Text-based console game

I'm currently learning C# in hopes of making games on my own using Unity. I'm using the Udemy class by Denis Panjuta and followed 8 sections before making my first app by myself. The 8 sections ...
0
votes
1answer
81 views

Cross-platform console abstraction

C++ is not aware of the console and it's behaviour / features / options, only its std::cout stream. To do more than stream we need to be platform aware. Aim To ...
5
votes
1answer
60 views

Header-only generic console menu maker

Some time ago, I wrote this answer to a question about creating a command line menu. I referred to it recently and noticed a few things that I wanted to improve. Purpose As with the original version, ...
3
votes
1answer
41 views

Simple Safe for Loading and Retrieving Digital Images

I wrote this little utility program that saves and load digital images such as videos, pictures among others in a database. I used click module for it's interface. ...
4
votes
2answers
163 views

Console-based TicTacToe game in Python

I created a console-based TicTacToe game in Python. So far, everything works as expected. I decided to keep the class static, because I figured there would be no use for multiple game states at once. ...
1
vote
0answers
57 views

CLI Python. Iterate list of tags: assign, validate, lookup & approve with input() [closed]

The Project I need a "Look Up Table" for Tags assigned to Accounts. Multiple Tags can be applied to the same Account, but each Tag points to only one Account: EG. Many-to-One lookup table. I ...
1
vote
1answer
76 views

A calculator in C without #include

I made a calculator in C without #include. Now, I want to make my code shorter and better. But I don't know how. Here is my code: ...
6
votes
3answers
1k views

Printing a heartbeat (heart star) animation

Here is a C program to print a heart star animation using a while loop written by myself. I've tested it on Ubuntu 18.04 (Bionic Beaver) and Ubuntu 20.04 (Focal ...
13
votes
3answers
1k views

Logger module in C

I wrote a logger module in C, that is essentially a printf wrapper + some additional color coding: I'd like get feedback how I can improve performance and also use better coding style. Right now, I ...
7
votes
2answers
327 views

Huffman encoding bitcodes display

So, the concept of the code is simple. Take any file, read the binary character counts and construct a Huffman tree, and then output the bit code of each character (displayed as its 8-bit value). This ...

1
2 3 4 5
15