home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
busi
/
dmw100.zip
/
PROLOG.ENV
< prev
next >
Wrap
Text File
|
1990-04-16
|
2KB
|
55 lines
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Window attributes -- for colour or B&W tube
:- set_video(3,_) -> % Can we put it in mode 3 (color text) ??
assert(wina$(main,48,63)),
assert(wina$(alert, 52,52)),
assert(wina$(highlight, 31)),
assert(wina$(bold, 63)),
set_video(-1,_)
;
(
assert(wina$(main, 7, 112)),
assert(wina$(alert, 112, 7)),
assert(wina$(highlight, 112)),
assert(wina$(bold, 15))
).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% The name of the help file used by 'help'
%% Change the second argument if you wish to use different files
%% for the index and text files respectively
% help$(idx, 'cthelp.idx').
% help$(txt, 'cthelp.txt').
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% The name of your editor - be certain to include a space as the last
%% element of the list, also make sure it is a character list NOT an atom
editor$("ted ").
% Assign ports
ioport(printer, 'lpt1'). % Set second argument to your printer
page_eject. % Remove if you don't want new page feeds
% after each page is printed.
% Misc
key_table(cursor(right), key_next_button).
key_table(cursor(left), key_prev_button).
key_table(cursor(up), key_prev_button).
key_table(cursor(down),key_next_button).
key_table(27, key_escape).
key_table(9, key_tab).
key_table(13, key_enter).
key_table(32, key_next_button).
key_table(home, key_home).
key_table(page(up), key_prev_page).
key_table(page(down), key_next_page).
key_table(X, X).
f(4) :- visit_document('util.atx',$NOTEPAD$).
:-assert(intro).
fprompt(Prompt,Value,X,Y) :-
prompt(40,1,$$,Prompt,String),
string_list(String, Vals),
sscanf(Vals,"%w%f%w",[Value]),
tmove(X,Y),
write($ $),
tmove(X,Y),
write(Value).