Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (51 sloc) 1.09 KB
/* vi:set ts=4 sts=4 sw=4 noexpandtab: */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <curses.h>
#include <unistd.h>
#include <ctype.h>
#ifndef WINDOWS
#include <err.h>
#endif
#define SETLO(v,x) v = ((v) & 0xf0) | (x)
#define SETHI(v,x) v = ((v) & 0x0f) | ((x) << 4)
#define CTRL(c) ((c) & 037)
#define KEY_ESCAPE 27
#define KEY_TAB 9 // this also happens to be ^i...
#define ENTER 13
#ifndef WINDOWS
#define BACKSPACE 0x07
#endif
int currmode;
char currcmd;
int instrx, instry, instroffs;
int octave;
int songx, songy, songoffs;
int trackx, tracky, trackoffs;
int currtrack, currinstr;
int currtab;
int saved;
int disptick;
int step;
char cmdstr[500];
char filename[1024];
char *validcmds;
char *keymap[2];
void initgui(void);
void initsonglines(void);
void inittracks(void);
void initinstrs(void);
void drawgui(void);
void drawsonged(void);
void drawtracked(void);
void drawinstred(void);
void guiloop(void);
void handleinput(void);
int freqkey(int c);
int hexinc(int x);
int hexdec(int x);
void insertc (int c);
char nextchar(void);
void setdisplay(char *str);
Jump to Line
Something went wrong with that request. Please try again.