A method for controlling a screen, comprising: acquiring a window state of a current window through a system interface when an input operation is detected based on the current window, wherein the current window comprises a split-screen state and a non-split-screen state; sending a specified flag to a specified input-method application based upon the window state acquired through the system interface being the split-screen state, wherein the specified input-method application comprises an input-method application preset to execute the input operation and the specified flag indicates that the window state of the current window is the split-screen state; starting up a floating keyboard through the specified input-method application and displaying the floating keyboard in a position corresponding to the display position of the current window, in a case that the specified flag further indicates a display position of the current window, wherein, the display position of the current window is determined based on the specified flag, a display position of a floating window to be displayed is determined based on the display position of the current window and a corresponding relationship between the display position of the current window and a display position of the floating keyboard, and the floating window is displayed in the determined display position, and wherein in a case that the display position of the current window is at an upper portion of the screen, a corresponding display position of the floating keyboard is at a lower portion of the screen; and displaying a floating keyboard in a form of numeric keypad or a full keyboard on the screen upon an input operation is detected based on an upper window or a lower window, when the split-screen display mode of the terminal is started in a horizontal-screen mode and the upper window and the lower split-screen window are displayed in the screen. acquiring a window state of a current window through a system interface when an input operation is detected based on the current window, wherein the current window comprises a split-screen state and a non-split-screen state; sending a specified flag to a specified input-method application based upon the window state acquired through the system interface being the split-screen state, wherein the specified input-method application comprises an input-method application preset to execute the input operation and the specified flag indicates that the window state of the current window is the split-screen state; starting up a floating keyboard through the specified input-method application and displaying the floating keyboard in a position corresponding to the display position of the current window, in a case that the specified flag further indicates a display position of the current window, wherein, the display position of the current window is determined based on the specified flag, a display position of a floating window to be displayed is determined based on the display position of the current window and a corresponding relationship between the display position of the current window and a display position of the floating keyboard, and the floating window is displayed in the determined display position, and wherein in a case that the display position of the current window is at an upper portion of the screen, a corresponding display position of the floating keyboard is at a lower portion of the screen; and displaying a floating keyboard in a form of numeric keypad or a full keyboard on the screen upon an input operation is detected based on an upper window or a lower window, when the split-screen display mode of the terminal is started in a horizontal-screen mode and the upper window and the lower split-screen window are displayed in the screen. <EOS>