Skip to content
Snippets Groups Projects
Commit 5dcf245f authored by deuce's avatar deuce
Browse files

Added beeps, and a utime() fix for inpath for client-to-client

NFS communication.
parent 44093e09
No related branches found
No related tags found
No related merge requests found
......@@ -120,8 +120,10 @@ int chatchar(WINDOW *win, int ch, box_t *boxch, const char* name) {
switch(ch) {
case 8:
curx-=1;
if(curx<2)
if(curx<2) {
curx+=1;
beep();
}
mvwaddch(win,cury,curx,' ');
wmove(win,cury,curx);
wrefresh(win);
......@@ -238,6 +240,8 @@ int chat(scfg_t *cfg, int nodenum, node_t *node, box_t *boxch, void(*timecallbac
close(in);
in=-1;
}
if(ch!=ERR && ch!=0)
beep();
}
YIELD();
continue;
......@@ -247,6 +251,8 @@ int chat(scfg_t *cfg, int nodenum, node_t *node, box_t *boxch, void(*timecallbac
close(in);
in=-1;
}
utime(inpath,NULL);
while(1) {
switch(read(in,&ch,1)) {
case -1:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment