Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
alexis-d
on Aug 5, 2011
|
parent
|
context
|
favorite
| on:
Designing command-line interfaces
I agree with most of the article, except the yes/no part. In fact I think it's better to do :
"Do you want to do this (Y/n)?"
Where the most common option is uppercase so I can just hit enter.
dmpatierno
on Aug 5, 2011
[–]
The important point here is to at least require that <Enter> key, rather than just using getchar() or whatever else and continuing on unexpectedly.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
"Do you want to do this (Y/n)?"
Where the most common option is uppercase so I can just hit enter.