9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Ethan Gardener <eekee57@fastmail.fm>
To: 9front@9front.org
Subject: Re: [9front] rio exit menu
Date: Thu, 13 Dec 2018 10:44:51 +0000	[thread overview]
Message-ID: <1544697891.1467468.1608010192.29B00C0C@webmail.messagingengine.com> (raw)
In-Reply-To: <CEC99320ABD6383A4A107B33427B362D@wopr.sciops.net>

More complete patch, only because it turned up as a preliminary to what I intended to do.  I can't post it on my contrib now although I do think that's the best place for such patches.  I'm too stressed to look up how.

diff -c /sys/src/cmd/rio/rio.c rio_exit_conf/rio.c
/sys/src/cmd/rio/rio.c:52,57 - rio_exit_conf/rio.c:52,58
  	Delete,
  	Hide,
  	Exit,
+ 	Hidden,
  };
  
  enum
/sys/src/cmd/rio/rio.c:81,88 - rio_exit_conf/rio.c:82,87
  	menu2str
  };
  
- int	Hidden = Exit+1;
- 
  char		*menu3str[100] = {
   [New]		"New",
   [Reshape]	"Resize",
/sys/src/cmd/rio/rio.c:124,133 - rio_exit_conf/rio.c:123,128
  	Image *i;
  	Rectangle r;
  
- 	if(strstr(argv[0], ".out") == nil){
- 		menu3str[Exit] = nil;
- 		Hidden--;
- 	}
  	initstr = nil;
  	kbdin = nil;
  	maxtab = 0;
/sys/src/cmd/rio/rio.c:730,740 - rio_exit_conf/rio.c:725,732
  		hide();
  		break;
  	case Exit:
- 		if(Hidden > Exit){
- 			send(exitchan, nil);
- 			break;
- 		}
- 		/* else fall through */
+ 		send(exitchan, nil);
+ 		break;
  	default:
  		unhide(i);
  		break;


  parent reply	other threads:[~2018-12-13 10:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-09 20:26 qwx
2018-12-09 20:38 ` [9front] " Julius Schmidt
2018-12-09 20:53   ` Steve Simon
2018-12-09 21:01   ` Stanley Lieber
2018-12-09 21:03     ` hiro
2018-12-09 21:29       ` qwx
2018-12-13  8:56       ` Ethan Gardener
2018-12-13 10:44 ` Ethan Gardener [this message]
2018-12-09 21:38 kvik
2018-12-09 21:40 ` Steve Simon
2018-12-09 21:55   ` Kurt H Maier
2018-12-09 22:04     ` Steve Simon
2018-12-09 22:07       ` Kurt H Maier
2018-12-09 22:28   ` Stanley Lieber
2018-12-11 21:24 ` Ethan Gardener
2018-12-11 21:34   ` hiro
2018-12-11 21:54     ` Ethan Gardener
2018-12-11 23:11       ` Ethan Gardener

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1544697891.1467468.1608010192.29B00C0C@webmail.messagingengine.com \
    --to=eekee57@fastmail.fm \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).