Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
9d73dbb9
Commit
9d73dbb9
authored
10 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
More use of XLAT mode. Background, blank status bar, an "Scrollback"
indicators use it now.
parent
edd8c28a
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/syncterm/menu.c
+4
-20
4 additions, 20 deletions
src/syncterm/menu.c
src/syncterm/term.c
+2
-6
2 additions, 6 deletions
src/syncterm/term.c
src/syncterm/uifcinit.h
+0
-1
0 additions, 1 deletion
src/syncterm/uifcinit.h
src/syncterm/window.c
+4
-16
4 additions, 16 deletions
src/syncterm/window.c
with
10 additions
and
43 deletions
src/syncterm/menu.c
+
4
−
20
View file @
9d73dbb9
...
@@ -45,27 +45,11 @@ void viewscroll(void)
...
@@ -45,27 +45,11 @@ void viewscroll(void)
if
(
top
>
cterm
->
backpos
)
if
(
top
>
cterm
->
backpos
)
top
=
cterm
->
backpos
;
top
=
cterm
->
backpos
;
puttext
(
term
.
x
-
1
,
term
.
y
-
1
,
term
.
x
+
term
.
width
-
2
,
term
.
y
+
term
.
height
-
2
,
scrollback
+
(
term
.
width
*
2
*
top
));
puttext
(
term
.
x
-
1
,
term
.
y
-
1
,
term
.
x
+
term
.
width
-
2
,
term
.
y
+
term
.
height
-
2
,
scrollback
+
(
term
.
width
*
2
*
top
));
switch
(
cterm
->
emulation
)
{
ciolib_xlat
=
TRUE
;
case
CTERM_EMULATION_ATASCII
:
cputs
(
"3crollback"
);
break
;
case
CTERM_EMULATION_PETASCII
:
cputs
(
"SCROLLBACK"
);
break
;
default:
cputs
(
"Scrollback"
);
cputs
(
"Scrollback"
);
}
gotoxy
(
cterm
->
width
-
9
,
1
);
gotoxy
(
cterm
->
width
-
9
,
1
);
switch
(
cterm
->
emulation
)
{
case
CTERM_EMULATION_ATASCII
:
cputs
(
"3crollback"
);
break
;
case
CTERM_EMULATION_PETASCII
:
cputs
(
"SCROLLBACK"
);
break
;
default:
cputs
(
"Scrollback"
);
cputs
(
"Scrollback"
);
}
ciolib_xlat
=
FALSE
;
gotoxy
(
1
,
1
);
gotoxy
(
1
,
1
);
key
=
getch
();
key
=
getch
();
switch
(
key
)
{
switch
(
key
)
{
...
...
This diff is collapsed.
Click to expand it.
src/syncterm/term.c
+
2
−
6
View file @
9d73dbb9
...
@@ -1906,16 +1906,12 @@ void font_control(struct bbslist *bbs)
...
@@ -1906,16 +1906,12 @@ void font_control(struct bbslist *bbs)
struct
file_pick
fpick
;
struct
file_pick
fpick
;
j
=
filepick
(
&
uifc
,
"Load Font From File"
,
&
fpick
,
"."
,
NULL
,
0
);
j
=
filepick
(
&
uifc
,
"Load Font From File"
,
&
fpick
,
"."
,
NULL
,
0
);
if
(
j
!=-
1
&&
fpick
.
files
>=
1
)
{
if
(
j
!=-
1
&&
fpick
.
files
>=
1
)
loadfont
(
fpick
.
selected
[
0
]);
loadfont
(
fpick
.
selected
[
0
]);
uifc_old_font
=
getfont
();
}
filepick_free
(
&
fpick
);
filepick_free
(
&
fpick
);
}
}
else
{
else
setfont
(
i
,
FALSE
,
1
);
setfont
(
i
,
FALSE
,
1
);
uifc_old_font
=
getfont
();
}
}
}
break
;
break
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/syncterm/uifcinit.h
+
0
−
1
View file @
9d73dbb9
...
@@ -8,7 +8,6 @@
...
@@ -8,7 +8,6 @@
#include
<uifc.h>
#include
<uifc.h>
extern
uifcapi_t
uifc
;
/* User Interface (UIFC) Library API */
extern
uifcapi_t
uifc
;
/* User Interface (UIFC) Library API */
extern
int
uifc_old_font
;
/* Font to return to after exiting uifc */
int
init_uifc
(
BOOL
scrn
,
BOOL
bottom
);
int
init_uifc
(
BOOL
scrn
,
BOOL
bottom
);
void
uifcbail
(
void
);
void
uifcbail
(
void
);
void
uifcmsg
(
char
*
msg
,
char
*
helpbuf
);
void
uifcmsg
(
char
*
msg
,
char
*
helpbuf
);
...
...
This diff is collapsed.
Click to expand it.
src/syncterm/window.c
+
4
−
16
View file @
9d73dbb9
...
@@ -13,26 +13,11 @@ int drawwin(void)
...
@@ -13,26 +13,11 @@ int drawwin(void)
char
*
p
;
char
*
p
;
char
str
[
32
];
char
str
[
32
];
int
x
,
y
,
c
;
int
x
,
y
,
c
;
int
old_xlat
;
gettextinfo
(
&
txtinfo
);
gettextinfo
(
&
txtinfo
);
#if 0
switch(ciolib_to_screen(txtinfo.currmode)) {
case SCREEN_MODE_ATARI:
case SCREEN_MODE_ATARI_XEP80:
strcpy(str,"3ync4%2- ");
break;
case SCREEN_MODE_C64:
case SCREEN_MODE_C128_40:
case SCREEN_MODE_C128_80:
strcpy(str,"SYNCTERM ");
break;
default:
strcpy(str,"SyncTERM ");
}
#else
strcpy
(
str
,
" "
);
strcpy
(
str
,
" "
);
#endif
if
(
txtinfo
.
screenwidth
<
80
)
if
(
txtinfo
.
screenwidth
<
80
)
term
.
width
=
40
;
term
.
width
=
40
;
...
@@ -73,6 +58,9 @@ int drawwin(void)
...
@@ -73,6 +58,9 @@ int drawwin(void)
winbuf
[
c
++
]
=
YELLOW
|
(
BLUE
<<
4
);
winbuf
[
c
++
]
=
YELLOW
|
(
BLUE
<<
4
);
}
}
}
}
old_xlat
=
ciolib_xlat
;
ciolib_xlat
=
TRUE
;
puttext
(
1
,
1
,
txtinfo
.
screenwidth
,
txtinfo
.
screenheight
,
winbuf
);
puttext
(
1
,
1
,
txtinfo
.
screenwidth
,
txtinfo
.
screenheight
,
winbuf
);
ciolib_xlat
=
old_xlat
;
return
(
0
);
return
(
0
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment