CMSC 242 -- Lab 1

Lab 1

Getting Started

Log onto a computer science server making sure to change the port number.

Follow these instructions to get your files ready to start lab.
  • Use wget to download the file at
  • Uncompress the dcurses.tgz file by using tar -xvzf dcurses.tgz

The Problem

ANSI escape codes are used to allow the system to change visual features of the terminal. We will implement a library of function calls to contorl the cursor and terminal features.
  1. implement the functions defined in dcurses.h
  2. write a README
  3. build a static library


You have been given a file named dcurses.h which contains the function signatures for the functions you will need to implement.

  • You may change the values of the two enums but not the names.
  • Your library should be named dcurses


If you have changed file names or directory names you will need to change to the directory which contains the directory you wish to hand in. We will use the handin cmsc242 assignment directory command. In this case you will type: handin cmsc242 lab1 your_directory_name

You lab is due at 11:59pm Feb. 7th 2020.