Skip to content

Commit

Permalink
info text improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalxl committed Nov 24, 2022
1 parent a1014f9 commit 03317a1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Nostr console client using Dart
# todo

* initial creation of private/pub key ( and loading happens in background)
* new menu system with three top apps: social network, public channels, and DM's
* allow special character input, and 256 limit [info](https://www.reddit.com/r/dartlang/comments/xcdsyx/i_am_seeing_that_stdinreadlinesync_returns_only/)

# other todo
Expand Down
10 changes: 5 additions & 5 deletions lib/console_ui.dart
Original file line number Diff line number Diff line change
Expand Up @@ -892,10 +892,9 @@ Future<void> encryptedChannelMenuUI(Store node) async {
justShowedChannels = true;
}

String menuInfo = """Encrypted Channel howto: You can create a channel, and then enter the channel by entering the first few unique letters of its pubkey or name.
In case you have been invited to a new channel, you can enter that channel the same way as above.
Once in a room/channel, you can then add new participants by typing '/add <their 64 byte hex public key>' and pressing enter.
When inside a channel, type '/reply <first few letters of id of post to reply to> <your message> to reply to a post.
String menuInfo = """Encrypted Channel howto: Enter a channel by typing the first few unique letters of its pubkey or full name.
Once in a room/channel: add new participants by typing '/add <their 64 byte hex public key>' and pressing enter,
To reply to a message, type '/reply <first few letters of id of post to reply to> <your message>,
When in a channel, press 'x' to exit. """;

int option = showMenu([ 'Enter an encrypted channel', // 1
Expand Down Expand Up @@ -1436,7 +1435,8 @@ Future<void> mainMenuUi(Store node) async {
default:
mainMenuContinue = false;
String authorName = getAuthorName(userPublicKey);
print("\nFinished Nostr session for user with name and public key: ${authorName} ($userPublicKey)");
clearScreen();
print("\nFinished Nostr session for user: ${authorName} ($userPublicKey)");
if( gEventsFilename != "") {
await node.writeEventsToFile(gEventsFilename);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/tree_ds.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,7 @@ class Store {
}

if( numPrinted > 0) {
print("\nTotal posts printed: $numPrinted for last $gNumLastDays days\n.");
print("\nTotal posts printed: $numPrinted for last $gNumLastDays days.\n");
}

return numPrinted;
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ homepage: https://github.com/vishalxl/nostr_console

# Release 0.1.8-beta
# menu changed
# build

environment:
sdk: '>=2.17.3 <3.0.0'
Expand Down

0 comments on commit 03317a1

Please sign in to comment.