Scala on Console

I am trying to do exercises based on Udemy Course CCA175 in scala.
When I type a big line, the cursor goes to the beginning… it is very confusing
How to increase the terminal length and width?

Example below
rcala> class Order(OrderID : int, OrderDate : String, OrderCustomerID: int, Orde

The solution for this is breaking a long command by using .

Please refer the below example:

        sqoop list-databases \
          --connect jdbc:mysql:// \
          --username retail_user \
          --password itversity