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
fa75faa0
Commit
fa75faa0
authored
22 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Fixed ttydefchars stuff (in last commit) for Linux build.
parent
8ef814fb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/xtrn.cpp
+12
-10
12 additions, 10 deletions
src/sbbs3/xtrn.cpp
with
12 additions
and
10 deletions
src/sbbs3/xtrn.cpp
+
12
−
10
View file @
fa75faa0
...
...
@@ -44,6 +44,8 @@
#ifdef __unix__
#include
<sys/wait.h>
// WEXITSTATUS
#define TTYDEFCHARS // needed for ttydefchars definition
#if defined(__FreeBSD__)
#include
<libutil.h>
// forkpty()
#elif defined(__OpenBSD__)
...
...
@@ -56,17 +58,13 @@
#include
<grp.h>
#endif
#define TTYDEFCHARS
#include
<termios.h>
#endif
#define XTRN_IO_BUF_LEN 5000
#ifdef __solaris__
# define TTYDEF_IFLAG (BRKINT | ICRNL | IMAXBEL | IXON | IXANY)
# define TTYDEF_OFLAG (OPOST | ONLCR)
# define TTYDEF_LFLAG (ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL)
# define TTYDEF_CFLAG (CREAD | CS8 | HUPCL)
#if defined(__solaris__)
#define TTYDEF_IFLAG (BRKINT | ICRNL | IMAXBEL | IXON | IXANY)
#define TTYDEF_OFLAG (OPOST | ONLCR)
#define TTYDEF_LFLAG (ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL)
#define TTYDEF_CFLAG (CREAD | CS8 | HUPCL)
static
cc_t
ttydefchars
[
NCCS
]
=
{
CEOF
,
CEOL
,
CEOL
,
CERASE
,
CWERASE
,
CKILL
,
CREPRINT
,
CERASE2
,
CINTR
,
CQUIT
,
CSUSP
,
CDSUSP
,
CSTART
,
CSTOP
,
CLNEXT
,
...
...
@@ -74,6 +72,10 @@
};
#endif
#endif
/* __unix__ */
#define XTRN_IO_BUF_LEN 5000
/*****************************************************************************/
/* Interrupt routine to expand WWIV Ctrl-C# codes into ANSI escape sequences */
/*****************************************************************************/
...
...
@@ -1170,7 +1172,7 @@ int sbbs_t::external(char* cmdline, long mode, char* startup_dir)
term
.
c_oflag
=
TTYDEF_OFLAG
;
term
.
c_lflag
=
TTYDEF_LFLAG
;
term
.
c_cflag
=
TTYDEF_CFLAG
;
term
.
c_cc
=
ttydefchars
;
memcpy
(
term
.
c_cc
,
ttydefchars
,
sizeof
(
term
.
c_cc
))
;
}
winsize
.
ws_row
=
rows
;
// #warning Currently cols are forced to 80 apparently TODO
...
...
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