Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.05 KB

readme.md

File metadata and controls

42 lines (27 loc) · 1.05 KB

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.