Skip to content

A basic script to teach me simple control character implementation for the Bash shell, with a C and Python version

Notifications You must be signed in to change notification settings

brandonmoss-99/cControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

cControl

cControl is a basic script created to teach me simple control character implementation for the Bash shell, and how implementation varies in different programming languages.

Dependancies

  • Python 3 for the Python implementation. I first wrote this using Python 3.8.6
  • A C compiler such as GCC or Clang for the C implementation.

Usage

Python

To use the Python implementation of cControl, simply call it:

$ python3 cControl.py

C

To use the C implementation of cControl, first compile the file cControl.c:

GCC:

$ gcc -o cControl cControl.c

Clang:

$ clang -o cControl cControl.c

Once compiled, simply call it:

$ ./cControl

Compatibility

These files were only written as a test, and were only designed to work on my MacOS machine (MacOS 10.14.6) for the Bash shell. I haven't tested its functionality for anything else, I imagine it should also work on Linux as well as other shells, but not Windows.

About

A basic script to teach me simple control character implementation for the Bash shell, with a C and Python version

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published