pwman

Check-in [8ed8a2d99f]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add ruler below password to aid visual selection of individual chars

Been meaning to do this for AGES and I just never got around to it (I
always assume doing anything in C is going to be hard and it's just not
always the case). Anyway, did today.

This just adds a ruler/counter below the password field like so:

Password: djdhhfhfkjhfuwhuifbvcnotrealmdsnwehbweha
1234567890123456789012345678901234567890

Which is a huge help for logins that say something along the lines of
"Enter character 15, 23 and 31".

God knows why I still use this password manager. Securty through
obscurity I guess.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk | tweaks
Files: files | file ages | folders
SHA3-256: 8ed8a2d99fdd0d1698e3f765a6c9dd8ca1d33fb6bf097c13c6d1509074b15a7b
User & Date: base@atomicules.co.uk 2017-08-19 15:04:29
Context
2017-08-19
15:04
Add ruler below password to aid visual selection of individual chars

Been meaning to do this for AGES and I just never got around to it (I
always assume doing anything in C is going to be hard and it's just not
always the case). Anyway, did today.

This just adds a ruler/counter below the password field like so:

Password: djdhhfhfkjhfuwhuifbvcnotrealmdsnwehbweha
1234567890123456789012345678901234567890

Which is a huge help for logins that say something along the lines of
"Enter character 15, 23 and 31".

God knows why I still use this password manager. Securty through
obscurity I guess. Leaf check-in: 8ed8a2d99f user: base@atomicules.co.uk tags: trunk, tweaks

2014-05-15
22:23
Merge branch 'manualheaven' into tweaks Leaf check-in: 91957153ef user: base@atomicules.co.uk tags: origin/tweaks, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to actions.c.

209
210
211
212
213
214
215








216
217
218
219
220
221
222

	/* loop through fields */
	for(i = 0; i < num_fields; i++){
		h += 2;
		if(fields[i].type == STRING){
			mvwprintw(dialog_win, h, 3,
				"%d - %s %s", (i+1), fields[i].name, (char*)fields[i].value);








		} else if(fields[i].type == INT){
			mvwprintw(dialog_win, h, 3,
				"%d - %s %d", (i+1), fields[i].name, *((int*)fields[i].value) );
		} else if(fields[i].type == INFORMATION){
			mvwprintw(dialog_win, h, 3,
				"%d - %s", (i+1), fields[i].name);
		}







>
>
>
>
>
>
>
>







209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230

	/* loop through fields */
	for(i = 0; i < num_fields; i++){
		h += 2;
		if(fields[i].type == STRING){
			mvwprintw(dialog_win, h, 3,
				"%d - %s %s", (i+1), fields[i].name, (char*)fields[i].value);
			if(fields[i].name == "Password:\t"){
				/* Print out a guide beneath password to help with picking individual characters
				 * I could have changed the string format, but for ease of horizontal alignment
				 * was easy to do as per password and then replace characters with spaces
				 */
				mvwprintw(dialog_win, h+1, 3,
					"%s   %s %s", " ", "         \t", "1234567890123456789012345678901234567890");
			}
		} else if(fields[i].type == INT){
			mvwprintw(dialog_win, h, 3,
				"%d - %s %d", (i+1), fields[i].name, *((int*)fields[i].value) );
		} else if(fields[i].type == INFORMATION){
			mvwprintw(dialog_win, h, 3,
				"%d - %s", (i+1), fields[i].name);
		}