• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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 832 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 30 Sept 2018, 17:08

      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

      A 1 Reply Last reply 1 Oct 2018, 10:38 Reply Quote 0
      • H Offline
        haveaniceday
        last edited by haveaniceday 30 Sept 2018, 17:23

        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 1 Oct 2018, 04:26

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

          1 Reply Last reply Reply Quote 0
          • A Offline
            advocatux @happyzenith
            last edited by 1 Oct 2018, 10:38

            @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 13 Oct 2018, 09:58

              Thanks!

              Naomi

              1 Reply Last reply Reply Quote 0
              • First post
                Last post