-/* Cursor movement funcs. */
-buf up(int i);
-buf down(int i);
+/* Buffer funcs. */
+buf set(buf b, int i);
+void show(buf b);
+buf up(buf b);
+buf down(buf b);
buf left(buf b);
buf right(buf b);
buf delch(buf b);
int type(int i);
-/* Escape-key handling. */
-int spec(int i);
+/* Special key handling. */
+void spec(void);
+
/* Other funcs. */
-void readhistory(char *fname);
+buf readhistory(char *fname);
void keyhandler(buf b);