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
5 votes
1 answer
66 views

Grabbing youtube thumbnails from urls

I made some C# code to grab youtube thumbnails from urls, I originally made this in python took some time converting it to C#. I am VERY new to C# and did this with minimal help. ...
1 vote
0 answers
76 views

Golang Program to convert RGB and Hex to DMC colors

I wrote a small console app for converting RGB or Hex values (by specfying on top of the input file) to the nearest colour of DMC thread. I'm curious to know how I could improve my code organisation ...
0 votes
2 answers
112 views

Drawing a rectangular playing field

I created a method to print a playing field in the console, but I think there are much better ways to do this than mine. ...
5 votes
1 answer
69 views

Bash script simple countdown timer with dotted output

My goal is to have a timer function that operates from the bash linux command line. I am looking for review and feedback. Printing the expected number of characters (dots, dashes, or bars) is nice-...
  • 83
7 votes
1 answer
178 views

Command-line correlation calculator in Java

I have this Java program that asks for a name of the file containing data rows in the format $$ x_1\ y_1 \\ x_2\ y_2 \\ \vdots \\ x_n\ y_n $$, and outputs on the command line the Pearson correlation ...
  • 26.1k
1 vote
0 answers
49 views

Create a command line from a list of arguments

In Python I know packages like click or argparse to implement command line interfaces. However, I'm in search for something the ...
  • 111
2 votes
0 answers
119 views

Is MVC an overkill for a chess CLI game?

I am working on a CLI chess game that only involves 2 human players, I decided to make it follow the MVC architecture to ensure separation of concern and to make the possibility of a GUI/web ...
  • 61
4 votes
1 answer
87 views

Funny TextUIWindow.java and a simple colorful text editor

(See this repository for full code.) Now I have rolled a simple class extending JavaFX Canvas for showing terminal like, colorful console: TextUIWindow.java: ...
  • 26.1k
2 votes
2 answers
81 views

A C++ WinAPI program for changing the process priority classes via PIDs - take 2

After improving the previous post, I came up with the following program: ...
  • 26.1k
4 votes
1 answer
178 views

A C++ WinAPI program for changing the process priority classes via PIDs

(See the next iteration .) I have this program (call it, for example, prioset.exe), that asks for two command line arguments: (1) the target process PID, (2) a ...
  • 26.1k
1 vote
1 answer
84 views

Shell implementation in C

I made a small shell implementation in C. It reads stdin and executes the command. It can also take in a file name from argv and execute all the arguments in the ...
2 votes
1 answer
43 views

Tic Tac Toe on the command line in Scala

This is my first Scala program, so I'd appreciate any feedback but especially feedback specific to Scala, for example situations where I could have utilised a feature better or where I've done ...
2 votes
1 answer
55 views

Clear output line in terminal after use for countdown (different length strings)

The method to overwrite the same line is well known and I use it for countdown, but what about when the next output string has a different size and will be generated by a single print? That's the ...
13 votes
6 answers
2k views

One of my first Python projects - an adventure game

This is a simple text-based adventure game I made. I'm a beginner and I want to know if the code is optimal or if it can be improved. The story is not very complex, but I made it more for practicing ...
5 votes
2 answers
66 views

Terminal calculator that saves and displays calculation history

I am self-learning C++ and this was my first smallish project. The goal was to create a working calculator that runs in the terminal, saves history of previous calculations, and has the ability to ...
1 vote
1 answer
29 views

first try packagist: Detection of execution by command (Terminal) or web environment

I'm here again; I'm learning a bit about github and posting things to packagist, this is my first try. I have created a library that validates or verifies in what type of environment php is being ...
1 vote
1 answer
41 views

UPDATE on Newspaper Bill Calculator CLI with Python (2 of 3, CLI)

Code is posted after explanation. Due to the size of the project, this is being posted in three separate posts. This also ensures each post is more focused. Post 1 of 3, Core: UPDATE 1 on Newspaper ...
2 votes
1 answer
52 views

Python CLI math game

I'm a self-taught programmer starting out with Python and my latest project is this game: It runs in the console, displays an equation, takes the user's answer, and increases your score if it's ...
  • 23
3 votes
1 answer
127 views

Console Slot Machine written in C#

This is my console simulation of the Slot Machine in C#. Please take a look at this code and point out possible ways of improvement. ...
  • 39
3 votes
1 answer
111 views

Newspaper Bill Calculator CLI with Python (2 of 3, CLI)

Code is posted after explanation. Due to the size of the project, this is being posted in three separate posts. This also ensures each post is more focused. Post 1 of 3, Core: Newspaper Bill ...
2 votes
0 answers
131 views

Command line framework for VBA compiler app, written in twinBASIC :o

Ok compiler is a bit of a stretch... I'm working on a package manager for VBA code, written primarily in python. One fiddly step of the pipeline involves "compiling" packages; this is the ...
  • 2,210
2 votes
1 answer
83 views

c++ CLI Ascii image renderer

I am wondering if this is written well or not, I am just a beginner and would like some feedback what should I improve on. Thanks. ...
3 votes
1 answer
129 views

ATM Console Program with Java

I am a freshman Computer Engineering student. Variable names are pretty straightforward; I believe it would be easy to understand. Program explanation: First you have to create an account and deposit ...
3 votes
1 answer
98 views

Inspect console directly on a web page

Occasionally, I do some web dev on computers where "inspect" is disabled, which can make debugging JavaScript (a language that is really good at dodging errors) a real pain. I've created a ...
1 vote
1 answer
383 views

Calculate the average score of students

Problem : Imagine you are a developer and get a job in which you need to create a program for a teacher. He needs a program written in c# that calculates the average score of his students. So he wants ...
2 votes
0 answers
60 views

Simple CLI File Encryption

This program is designed to work on the command line by piping stdin to stdout and encrypting or decrypting the input using a symmetric key. Any suggestions for improvement would be greatly ...
4 votes
2 answers
114 views

ds - directory switcher - a *nix command line utility for tagging the directories and switching between them via tags (Perl + bash)

I have this program for tagging directories and switching between the folders via tags. The front end is written in Bash (version 4.4.23) and the back end in Perl (5.26.1). Critique request Since this ...
  • 26.1k
5 votes
1 answer
100 views

Text-based Tic-Tac-Toe in C

I have written a text-based tic-tac-toe game in C. Are there any ways I can further improve the code? It uses an ENUM to indicate the player type and two bitfields to indicate the board. ...
6 votes
2 answers
183 views

Command Line Parser for my VBA package manager written in Python

As the title suggests, I'm creating a package manager for VBA which is modelled loosely on conda/ poetry, allowing you to install VBA modules potentially into "environments", but certainly ...
  • 2,210
1 vote
1 answer
48 views

CLI Generator & Parser

I have written a module that allows the developer to generate a CLI and parse given arguments. I am fairly new to C and would love to hear feedback on my code to improve it. All feedback is welcome ...
1 vote
1 answer
42 views

Define multiple buttons for Windows commands

I'm teaching myself Python. I wrote this code for work to help me troubleshoot end users PCs. It opens a GUI with a selection of buttons. It's written in python using pyinstaller to convert it to an ...
2 votes
1 answer
338 views

Ping pong game (console)

I've made a 2 player game in c# console that is a ping pong game. I've made it in more or less 4 hours and in my opinion it is the best performing game I've made so far. Just to let you know, I am a ...
2 votes
4 answers
85 views

The user-facing part of the code base, using Python's argparse package

This question is a sequel to one I asked the other day. The previous question examined the core of my repo; this one examines the user-facing part. If you're curious to see what the repo as a whole is ...
5 votes
1 answer
178 views

Rust CLI tool to synchronize files to S3

Learning Rust, I've written a small CLI tool which will Fetch the existing data in S3 Iterate through local folders Upload the files which don't exist in S3 I'd be keen to hear anything I might have ...
5 votes
2 answers
399 views

Mine sweeping game for the terminal

Over the holidays I was bored due to lockdown and implemented a mine sweeping game for the terminal. Any feedback is welcome. ...
2 votes
2 answers
102 views

C99 - An alphanumeric random char generator

I have built a very small program that is a command line utility for generating alphanumeric characters of a certain length (up to a max. length) called randchars. <...
5 votes
1 answer
356 views

I made a little mastermind game in C# to exercise - do I take the right approach?

I'm very new in C#, and the best way to learn, is to do exercises. As I tried to find a challenging exercise, I created this little game called MasterMind. The rules are very simple, and are explained ...
  • 53
4 votes
2 answers
313 views

Simple console application to practice OOP and file layout

I am not used to work with OOP so I decided to make a simple console "walk" game to focus on the OOP and the general game design process. I tried to make it as robust as possible but I feel ...
  • 139
0 votes
1 answer
81 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
0 answers
55 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
2 answers
794 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 ...
7 votes
1 answer
308 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 ...
  • 2,262
3 votes
2 answers
310 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
1 answer
1k 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
1 answer
58 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
2 answers
977 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
1 answer
38 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 ...
  • 21
3 votes
2 answers
193 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
2 answers
53 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 ...
  • 229
2 votes
2 answers
74 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: ...
  • 26.1k

1
2 3 4 5
15