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
2
votes
0answers
29 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
63 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 ...
2
votes
1answer
56 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
59 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
48 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
38 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
139 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
56 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
69 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: ...
8
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 ...
15
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 ...
9
votes
2answers
315 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 ...
2
votes
3answers
187 views

A calculator in C++

I want to make my calculator code shorter. Here is my code: ...
6
votes
2answers
120 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
99 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
102 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
132 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
19 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
289 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
34 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
128 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
95 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
84 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
91 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
132 views

I made basketball program using Java that runs on console

I made a simple console basketball game using Java. ...
6
votes
1answer
84 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
212 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 ...
15
votes
4answers
994 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 ...
2
votes
1answer
35 views

Validating initial inputs then a joint validation test

The code works as intended but I believe it is very inefficient. The calculation of weights is simple, but I imagine this would be silly, for example, a 100 asset portfolio. The first problem is that ...
1
vote
0answers
39 views

Analog Clock in AEC

I've made a simple terminal-based analog clock for Linux in AEC. Here we go: ...
2
votes
1answer
53 views

Command Line app for calculating payroll in Java

I had an assignment last semester to program a payroll app utilizing methods. I went back to it and re-wrote it to include an extra class as well. I would like some feedback regarding whether my code ...
1
vote
0answers
48 views

A basic prototype of “Hello World” EXE maker

This is a basic prototype of my "Hello World" EXE maker to display custom text string compatible with DOS and 32-bit Windows, but the C# code is rather cryptic because of hard-coded ...
4
votes
1answer
51 views

Small program to convert multiple header files into one

UPDATE: I have changed some of the code from feedback provided on #cpp_review I created a little project that will basically move all header files into one (mostly for libs). The project is small, ...
4
votes
1answer
55 views

command-line demo app

I started learning from the book: head first design patterns. As I am trying out different programs in the book, I am compiling them in this one demo app. Below is the code for its driver function. ...
6
votes
2answers
181 views

Follow Up DinoPass - CLI Password Manager

This is a follow-up (somewhat) to this post. I said somewhat because I've kinda changed most of the logic. Changes: I've changed the project name I've changed the CLI UX I've added encryption / ...
5
votes
1answer
201 views

Caesar Cipher [The Odin Project-Javascript Exercise]

Very new to coding, so please don't bully me. Implement the legendary caesar cipher: In cryptography, a Caesar cipher, also known as Caesar's cipher, the shift cipher, Caesar's code or Caesar shift, ...
4
votes
1answer
146 views

Animated progress bar in C++ | How to simplify or alternatives using strings

i'm a beginner in C++ i decided to learn the Scary C++ Programing Language i am a slow learner and after 2 Months learning C++ i saw the need to have a Nice and Tidy progress bar for my programs. ...
1
vote
1answer
112 views

A Credit Payment Calculator

So I've attempted this project from hyperskills where you're asked to make a calculator script that can calculate annuity and differentiated payments given that 3 of 4 values are known. I think i went ...
2
votes
2answers
121 views

Python Command Line Interface

I wrote a little module for making quick CLIs in Python and I wanted to get your thoughts on areas of improvement (as well as to see what can break it). One of the issues I had from the start was ...
1
vote
2answers
46 views

CLI application for Football Stats Generator

I'm trying to build a CLI that runs until the user decides to exit. The functionality of the CLI is to be able to explore a json-file by typing commands into the terminal while the program is running. ...
3
votes
0answers
93 views

Using SSH.NET to interact with a Bash shell

I'm trying to interact with a bash shell on a router to automate some CLI commands using SSH.NET. I'm not sure if the approach I'm taking is the best one and would like to get some recommendations on ...
1
vote
0answers
28 views

Simplified Bash getopts flow

I've always found the boilerplate needed to use getopts correctly fairly fiddly and verbose, and was motivated to try to abstract it away. I wanted to try ...
3
votes
1answer
54 views

Command line dictionary tool, using webscraping

This is my first proper Go program, after completing Go by Example and https://tour.golang.org. I have a background in Python. This program scrapes definitions from Wordnik, then prints them nicely ...
1
vote
0answers
17 views

Processing commandline arguments [closed]

I'm parsing commandline arguments in lua with a command parser library (penlight lapp). This works fine, is easy to design and flexible enough for me. However, now ...
7
votes
1answer
166 views

C# random math questions project

I made a C# console math project where the user answers addition, subtraction, multiplication, division, power or square-root questions based on the difficulty they choose! However, I am struggling ...
4
votes
3answers
247 views

Stopwatch class without using System.Diagnostics in C#

Design a class called Stopwatch. The job of this class is to simulate a stopwatch. It should provide two methods: Start and Stop. We call the start method first, and the stop method next. Then we ...
3
votes
2answers
110 views

C# maths quiz with user choosen difficulty-level

I have built a maths project that asks the user an addition, subtraction, multiplication, division, power and square root questions based on the difficulty level they choose! But I am trying to ...
3
votes
2answers
55 views

Python word counter for all files in the current directory

I wrote a simple command-line script to count all words in all documents (of the supported formats) in the current directory. Currently it supports TXT, DOCX, XLSX, and PDF formats and has been ...

1
2 3 4 5
14