1
0
Fork 0
mirror of https://github.com/vbatts/bvi.git synced 2025-08-03 08:00:27 +00:00

bvi-1.5.0.src.tar.gz

6540716a1a3b2b9711635108da14b26baea488881d4a682121c0bddbba6b74cb  bvi-1.5.0.src.tar.gz

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Gerhard Bürgmann 2025-07-27 10:02:07 -04:00 committed by Vincent Batts
parent 75fc14b579
commit 50898d8d59
Signed by: vbatts
GPG key ID: E30EFAA812C6E5ED
28 changed files with 1936 additions and 1473 deletions

View file

@ -7,10 +7,11 @@
* 2010-06-02 V 1.3.4
* 2013-08-22 V 1.4.0
* 2019-10-09 V 1.4.1
* 2025-07-19 V 1.5.0
*
* NOTE: Edit this file with tabstop=4 !
*
* Copyright 1996-2019 by Gerhard Buergmann
* Copyright 1996-2025 by Gerhard Buergmann
* gerhard@puon.at
*
* This program is free software; you can redistribute it and/or modify it
@ -64,8 +65,7 @@ putchr(char ch)
#else
int
putchr(ch)
int ch;
putchr(int ch)
{return putchar(ch);}
#endif
@ -116,7 +116,7 @@ initterm()
no_intty = tcgetattr(fileno(stdin), &ostate);
tcgetattr(fileno(stderr), &ostate);
nstate = ostate;
if (!no_tty) {
ostate.c_lflag &= ~(ICANON|ECHO);
@ -143,8 +143,7 @@ reset_tty()
void
sig(sig)
int sig;
sig(int sig)
{
reset_tty();
printf("\r\n");
@ -156,12 +155,15 @@ sig(sig)
* doshell() - run a command or an interactive shell
*/
void
doshell(cmd)
char *cmd;
doshell(char *cmd)
{
int ret;
#ifndef DJGPP
#ifdef __STDC__
char *getenv(const char *);
#else
char *getenv();
#endif
char *shell;
char cline[128];
#endif
@ -277,10 +279,7 @@ vgetc()
* Copy contents of memory (with possible overlapping).
*/
char *
memmove(s1, s2, n)
char *s1;
char *s2;
size_t n;
memmove(char *s1, char *s2, size_t n)
{
bcopy(s2, s1, n);
return(s1);