Newer
Older
Scratch / ubix3 / src / bin / shell.c
@Christopher W. Olsen Christopher W. Olsen on 25 Oct 2019 527 bytes Scratch
/**************************************************************************************
$Id: shell.c,v 1.4 2002/04/26 22:40:43 reddawg Exp $


**************************************************************************************/

int main() {
  int i;
  char msg[32];
  char buf[32];
  msg[0] = 'U';
  msg[1] = 'b';
  msg[2] = 'i';
  msg[3] = 'x';
  msg[4] = 'O';
  msg[5] = 'S';
  msg[6] = '#';
  msg[7] = ' ';
  msg[8] = '\0';
  while (1) {
    print(msg);
    i = getc();
    gets(buf);
    print(buf);
    }
  exit();
  }