UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Closing nano

    Scheduled Pinned Locked Moved Support
    5 Posts 4 Posters 1.3k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • H Offline
        happyzenith
        last edited by

        Hi,

        I've had a very simple problem that I don't seem to be able to find a solution to. I've opened nano and typed in:

        print("hello")

        Then I wanted to close the file. I can see at the bottom of the screen ^X to exit, which I've found out means control-X. I've tried typing that (didn't work), then clicking on the corresponding area on the screen, then scrolling to Nano on the menu and clicking on CTRL+X but still can't seem to get it to close. How do I do that? I'm sure there must be a simple answer, but I can't find it!

        Thanks,
        Naomi

        advocatuxA 1 Reply Last reply Reply Quote 0
        • H Offline
          haveaniceday
          last edited by haveaniceday

          Hi Naomi,

          you're correct, the answer is quite simple! You see the three little dots above the keyboard, on th left side? Touch them and slide to 'nano'. Then, in the bar above the keyboard, you will find many ctrl key combination, just like ctrl+x. If you touch them, the terminal app will do the keypresses for you.
          Here are two screenshots:

          1_1538328150014_screenshot20180930_191638859.png 0_1538328150012_screenshot20180930_191633926.png

          1 Reply Last reply Reply Quote 2
          • E Offline
            ernest
            last edited by

            https://www.howtogeek.com/howto/42980/the-beginners-guide-to-nano-the-linux-command-line-text-editor/ 😉

            1 Reply Last reply Reply Quote 0
            • advocatuxA Offline
              advocatux @happyzenith
              last edited by

              @happyzenith as @haveaniceday already said, there's a terminal keyboard layout for nano.

              If you want to learn some more tricks about the terminal, please see:

              https://ubports.com/blog/ubports-blog-1/post/terminal-chapter-1-113
              https://ubports.com/blog/ubports-blog-1/post/terminal-chapter-2-117
              https://ubports.com/blog/ubports-blog-1/post/terminal-chapter-3-124
              https://ubports.com/blog/ubports-blog-1/post/terminal-chapter-4-125

              1 Reply Last reply Reply Quote 0
              • H Offline
                happyzenith
                last edited by

                Thanks!

                Naomi

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post