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
3
votes
2answers
69 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
167 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
49 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
863 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
45 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
31 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
73 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
118 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
77 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
97 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 ...
1
vote
0answers
34 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
82 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
71 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
74 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
1k 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
120 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
91 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
57 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
50 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
73 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
38 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
226 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
78 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 ...
1
vote
1answer
65 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 ...
6
votes
1answer
55 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
40 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. ...
5
votes
2answers
150 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
75 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: ...
7
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 ...
14
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 ...
8
votes
2answers
319 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
vote
3answers
190 views

A calculator in C++

I want to make my calculator code shorter. Here is my code: ...
6
votes
2answers
166 views

RPG item, character, and display

Question description I am currently developing an RPG to gain programming experience. An RPG consists of many individual components such as the combat system, quest system and the item system. I ...
5
votes
1answer
108 views

Command-line utility to bump semantic version numbers in an input file

Update: link to corresponding release The code presented here is tagged as release version v0.1.0 on Github for easy reference. Introduction bump is a command-line ...
4
votes
1answer
106 views

Password Generator “Crapcode”

I made Password Generator on C#. It prompts the user for the length of the password, whether it contains numbers, lowercase letters, uppercase letters or symbols, and generates a strong password from ...
10
votes
2answers
172 views

Text based rendering/animation engine for the terminal

This project was highly inspired by the popular drawille project, that lets one draw to the terminal using the braille unicode characters. The advantage of drawing with braille characters compared to ...
2
votes
0answers
20 views

Analog Clock for WebAssembly in AEC

I've ported the Analog Clock program written in AEC from Linux to WebAssembly. You can see the live version. ...
5
votes
2answers
318 views

Object oriented approach for snake game in C++

I started to code in c++ recently and my goal is to develop games using c++. After learning basics I tried to implement my own version of snake console based game in c++ with the help of some online ...
3
votes
1answer
36 views

(Improved) get-release npm module

Improved version of the original question I've created a simple npm module and CLI program to get the latest GitHub and Bitbucket release from their APIs using Node.js. Please tell me if there's ...
8
votes
1answer
52 views

get-release npm module

Solved, question with improved code I've created a simple npm module and CLI program to get the latest GitHub and Bitbucket release from their APIs using Node.js. Please tell me if there's anything to ...
3
votes
1answer
306 views

7-Day Agenda in Python

This is a personal project of mine. I made a simple seven day agenda program in Python that stores tasks as a string, saves it into a .dat file, and returns that task when you input a day of the week....
1
vote
2answers
100 views

My first C# console program

I just started coding c# 4 days ago. I just finsihed my first ever Console Program. I would like to hear some suggestions, on how I could improve my code. I would also like to add that this is my ...
4
votes
1answer
89 views

Simple Console Chat in Java

I have rewritten my little chat application and tried to pay attention to former hints and tips. The viewer and the writer have to run as seperate applications. the Writer.class basically stores ...
6
votes
2answers
95 views

C# Better structure in my code & any other critiques

Any advice on how to make this code; cleaner, more effective, just overall better! Program creates a 'post' in the console. The post has a: message create on date score for 'upvotes' and 'downvotes' ...
4
votes
2answers
258 views

I made basketball program using Java that runs on console

I made a simple console basketball game using Java. ...
6
votes
1answer
97 views

Tool for converting OEIS sequences into Desmos lists

https://github.com/CascadeIllusion/DesmOEIS Recently began work on a Python project called DesmOEIS to build up my portfolio. It's a simple console program that looks up integer sequences from the ...
5
votes
1answer
249 views

Fishy password management

Problem When it comes to security I like to don a tin foil hat. As such I use the, off-line password manager, Keepass. Keepass allows you to to use multi-factor authentication via; a password, a ...
2
votes
0answers
23 views

A Firebase Uploader CLI

I built this code as part of a test project that was given to me by a company. They had given me a .csv file that contained over 9000 records and wanted me to build a program that would upload it to ...

1
2 3 4 5
15